Workaround for HTML closing tag problem

Workaround for HTML closing tag problem

Rate This
  • Comments 4

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.

Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post
  • "On these keyboards, the “>” character is typed by pressing AltGr+. or RightAlt+."

    I live in Poland and when i want type ">" I simple press Shift+.

  • Why should failing to close a tag depend on which modifcator is pressed? This sounds like a bug to me. Just fix it.

  • @Damian Gronczewski

    Because, you are using "Polski Programisty" not "Polski" keyboard layout. That is not the same.

  • Works, thanks a lot.

    BTW: How comes that Visual Studio is so globalization-ignorant? This is not first problem with Czech keyboard. And I'm afraid this is even not the last.

Page 1 of 1 (4 items)