Options, Text Editor, XML, Miscellaneous
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Use the Miscellaneous options page to change the autocompletion and schema settings for the XML Editor. To access miscellaneous XML options, choose Tools > Options > Text Editor > XML, and then choose Miscellaneous.
Auto Insert
Close tags
The text editor adds close tags when authoring XML elements. If an element start tag is selected, the editor inserts the matching close tag, including a matching namespace prefix. This check box is selected by default.
Attribute quotes
When authoring XML attributes, the editor inserts the ="
and "
characters and positions the caret (^) inside the quotation marks. This check box is selected by default.
Namespace declarations
The editor automatically inserts namespace declarations wherever they are needed. This check box is selected by default.
Other markup (Comments, CDATA)
Comments, CDATA, DOCTYPE, processing instructions, and other markup is autocompleted. This check box is selected by default.
Network
Automatically download DTDs and schemas
Schemas and document type definitions (DTDs) are automatically downloaded from HTTP locations. This feature uses System.Net with autoproxy server detection enabled. This check box is selected by default.
Outlining
Enter outlining mode when files open
Turns on the outlining feature when a file is opened. This check box is selected by default.
Caching
Schemas
Specifies the location of the schema cache. The Browse button opens the current schema cache location in a new window. The default location is %VsInstallDir%\xml\Schemas.