Since .xsd is and XML itself you need to change the XML formatting settitngs.

In IDEA settings (File -> Settings... or Ctrl+Alt+S) go to Editor -> Code Style -> XML and in Wrap Attributes dropdown choose Do Not Wrap.

Answer from streetturtle on Stack Overflow
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ working-with-xml.html
XML | IntelliJ IDEA Documentation
IntelliJ IDEA brings powerful support for XML that includes structure validation, formatting (Ctrl+Alt+L) and indentation (Ctrl+Alt+I according to the XML code style, importing unbound namespaces, viewing code structure, unwrapping and removing ...
๐ŸŒ
LabKey
labkey.org โ€บ Documentation โ€บ wiki-page.view
Use IntelliJ for XML File Editing: /Documentation
Editing and statement completion in XML files is made easier by using XSDs (XML Schema Definitions). This topic helps you configure IntelliJ to find and use these files.
๐ŸŒ
JetBrains
plugins.jetbrains.com โ€บ docs โ€บ intellij โ€บ xml-dom-api.html
XML DOM API | IntelliJ Platform Plugin SDK
This article is intended for plugin writers who create custom web server integrations, or some UI for easy XML editing. It describes the Document Object Model (DOM) in IntelliJ Platform - an easy way to work with DTD or Schema-based XML models.
๐ŸŒ
JetBrains
blog.jetbrains.com โ€บ home โ€บ intellij idea
XML : The IntelliJ IDEA Blog | The JetBrains Blog
Working on an XML document, for having additional code assistance such as error highlighting or completion, you need to specify an XML schema (e.g. XSD or DTD). In the previous versions of IntelliJ IDEA, you had to work with Schemas and DTDs section in Settings or fetch schema from external resourceโ€ฆ
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ xml-refactorings.html
XML refactorings | IntelliJ IDEA Documentation
January 30, 2026 - The XML refactoring support is provided by the Refactor-XML plugin that is bundled with the IDE and enabled by default.
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 206809055-Is-there-a-format-XML-command
Is there a format XML command? โ€“ IDEs Support (IntelliJ Platform) | JetBrains
November 23, 2015 - I'm using IDEA 15.0.1 Ultimate Thanks for any pointers., ... Right in the main menu: "Code => Reformat Code" or just Ctrl-Alt-L Or "Help => Find Action" (which is Ctrl-Shift-A), then type "format" ...
Find elsewhere
๐ŸŒ
JetBrains
plugins.jetbrains.com โ€บ intellij-platform-explorer
com.intellij.xml.xmlExtension - IntelliJ Platform Explorer
IntelliJ Platform Explorer is a search tool for browsing Extension Points inside existing implementations of open-source IntelliJ Platform plugins
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ referencing-xml-schemas-and-dtds.html
Referencing XML schemas and DTDs | IntelliJ IDEA Documentation
1 month ago - <root xmlns="http://www.example.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/xsds/example.xsd"> ... If the referenced URL or the namespace URI is not recognized, it's marked as an error. To solve the problem: Place the caret at the referenced URL and press Alt+Enter. From the list of suggested options, select one of the following: Fetch external resource. IntelliJ IDEA downloads the referenced file and associates it with the URL (or the namespace URI).
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ generating-xml-schema-from-instance-document.html
Generating XML schemas from instance documents | IntelliJ IDEA Documentation
An XSD (XML Schema Definition) is required for running structure validation checks on a Web content file. IntelliJ IDEA can scan any XML file for the existing elements and attributes and generate a Schema for it.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ xml-java-binding.html
XML-Java Binding | IntelliJ IDEA Documentation
June 17, 2024 - With IntelliJ IDEA, you can get a Java representation of an XML Schema, generate an XML Schema from a Java class, and unmarshal XML instance documents into Java content trees and vice versa.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ generating-xml-schema-from-java-code.html
Generate an XML Schema from Java Code | IntelliJ IDEA Documentation
Open the Marketplace tab, find ... Open the necessary class in the editor. In the main menu, go to Tools | XML Actions | Generate XML Schema From Java Using JAXB....
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ settings-languages-xml-catalog.html
XML Catalog | IntelliJ IDEA Documentation
February 10, 2026 - The catalog.xml files contain the information on how to resolve various PUBLIC and SYSTEM identifiers during XML processing.
๐ŸŒ
Japplis
japplis.com โ€บ home โ€บ an xml viewer for intellij idea
An XML Viewer for IntelliJ IDEA - Japplis news
April 12, 2023 - I created a free XML viewer applet that runs in the Applet Runner plug-in for IntelliJ IDEA and other JetBrains IDE such as Android Studio. You...
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ settings-languages-default-xml-schemas.html
Default XML Schemas | IntelliJ IDEA Documentation
February 10, 2026 - In this area, choose the XSD (XML Schema Definition) Schema to validate XML files.
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 360010497879-How-to-I-get-all-xml-files-in-resource
How to I get all xml files in resource โ€“ IDEs Support (IntelliJ Platform) | JetBrains
<!DOCTYPE post PUBLIC "//GOOGLE/ > 2. should I save them in memory as a Map (or whatever type) to keep indexes of files for fast looking needed XML or perform search exact XML every time using FileBaseIndex and iterate them again and again ... scope = GlobalSearchScopesCore.directoriesScope(module.getProject(), true, resourceRoots.toArray(VirtualFile.EMPTY_ARRAY)) You can use API like com.intellij.psi.search.FileTypeIndex#processFiles(com.intellij.openapi.fileTypes.FileType, com.intellij.util.Processor<? super com.intellij.openapi.vfs.VirtualFile>, com.intellij.psi.search.GlobalSearchScope) to perform the filtering according to DocType or any other criteria.