XML
PyCharm brings powerful XML editing support that includes:
- Validation and syntax highlighting.
- Code completion (Ctrl+Space).
- Indentation (Ctrl+Alt+I, Ctrl+Alt+L).
- Formatting (Ctrl+Alt+L) according to the XML code style.
- Intention actions (Alt+Enter).
- Importing unbound namespaces.
- Viewing code structure (Alt+7).
- Navigation in the source code (Ctrl+B).
- Integrated documentation (Ctrl+Q).
- Search for usages (Alt+F7).
- Commenting and uncommenting lines (Ctrl+/, Ctrl+Shift+/).
- Unwrapping and removing tags (Ctrl+Shift+Delete).
- Generating schemas from instance documents and vice versa.
- Generating DTD files.
To import an XML namespace
- Open the desired file for editing, and start typing a tag. If a namespace is not bound, the following prompt appears:
- Press Alt+Enter. If there are multiple choices, select the desired namespace from the list.
Last modified: 23 July 2018