diff --git a/docs/Features/XMLFeatures.md b/docs/Features/XMLFeatures.md index 2feb7827..4b803712 100644 --- a/docs/Features/XMLFeatures.md +++ b/docs/Features/XMLFeatures.md @@ -10,7 +10,7 @@ Using `/` in an opening tag will auto close the tag. ![Auto Close Tag Slash](../images/Features/AutoCloseTagSlashXML.gif) -## Linked Editing +## Auto Rename Tag Linked editing is supported, allowing for simultaneous changes an opening and closing tag pair. @@ -46,12 +46,28 @@ The `OUTLINE` dropdown under `EXPLORER` details the XML tags in the document and ![Symbol Outline XML](../images/Features/SymbolOutlineXML.gif) +## Snippet Generation + +When starting a new XML document, `Ctrl` + `Space` lists different snippet options to set up the document. + +![Generate XML Snippet](../images/Features/GenerateXMLSnippet.gif) + +There are also a number of keywords that will be recognized as snippets and autocompleted. For example, typing `schema` will list schema related snippet options. + +![Generate XML Schema Snippet](../images/Features/GenerateXMLSchemaSnippet.gif) + ## Completion Support ### Basic completion If an XML file is not associated to a bound grammar file, you can utilize XML completion which uses existing XML tag elements. +### Attribute value completion + +For a XML tag attribute, there is autocompletion support for the attribute value. For example, for path completion, type `.` or `/`. + +![Attribute Completion XML](../images/Features/AttributeCompletionXML.gif) + ### Completion based on grammar #### Completion based on XSD diff --git a/docs/Features/XSDFeatures.md b/docs/Features/XSDFeatures.md index 170159c6..45117c6f 100644 --- a/docs/Features/XSDFeatures.md +++ b/docs/Features/XSDFeatures.md @@ -36,6 +36,12 @@ After defining a `Type` or `element`, selecting the `name` attribute will highli ![Highlight Occurrences XSD](../images/Features/HighlightOccurrenceXSD.gif) +### Change all type occurrences + +To rename a `Type` definition and its associated `element` `type` attribute values, highlight the `name` attribute of the `Type` and press `F2` or use the dropdown to select `Rename Symbol`. + +![Rename Type Reference XSD](../images/Features/RenameTypeReferenceXSD.gif) + ## Syntax Validation XSD syntax validation is enabled for any `.xsd` file. diff --git a/docs/images/Features/AttributeCompletionXML.gif b/docs/images/Features/AttributeCompletionXML.gif new file mode 100644 index 00000000..e2a93d3d Binary files /dev/null and b/docs/images/Features/AttributeCompletionXML.gif differ diff --git a/docs/images/Features/GenerateXMLSchemaSnippet.gif b/docs/images/Features/GenerateXMLSchemaSnippet.gif new file mode 100644 index 00000000..d7c92fd7 Binary files /dev/null and b/docs/images/Features/GenerateXMLSchemaSnippet.gif differ diff --git a/docs/images/Features/GenerateXMLSnippet.gif b/docs/images/Features/GenerateXMLSnippet.gif new file mode 100644 index 00000000..e1c157fd Binary files /dev/null and b/docs/images/Features/GenerateXMLSnippet.gif differ diff --git a/docs/images/Features/RenameTypeReferenceXSD.gif b/docs/images/Features/RenameTypeReferenceXSD.gif new file mode 100644 index 00000000..da33e7a4 Binary files /dev/null and b/docs/images/Features/RenameTypeReferenceXSD.gif differ