Workaround for HTML closing tag problem

Mads Kristensen

In Visual Studio 2012, HTML tags will fail to be automatically closed when using the following keyboard layouts:

  • Canadian Multilingual
  • Croatian
  • Czech
  • Hungarian
  • Latvian
  • Polish
  • Romanian
  • Serbian
  • Slovak
  • Slovenian

On these keyboards, the “>” character is typed by pressing AltGr+. or RightAlt+.

Work around

  1. Open the Tools/Customize dialog
  2. Click the “Keyboard…” button
  3. In the “Show commands containing:” text field, enter: view.autoclose
    1. The list view will display “View.AutoCloseTagOverride”
    2. “Shortcuts for selected command” will display: Ctrl+Alt+. (HTML Editor Source View)
  4. Press the “Remove” button
  5. Press the “OK button
  6. In the Customize dialog, press the “Close” button


Typing an HTML tag will now result in the closing tag being automatically inserted, as in VS 2010.

0 comments

Discussion is closed.

Feedback usabilla icon