Quantcast
Channel: ASP.NET Blog
Viewing all articles
Browse latest Browse all 7144

Workaround for HTML closing tag problem

$
0
0

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.


Viewing all articles
Browse latest Browse all 7144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>