When editing an html file in VS2013, when I type an ampersand followed by a space, the editor automatically gives me Á instead of just &. Is there a way to turn this off with high granularity? I don't want to disable the autotype feature entirely (at least, not yet). But this one is (in my opinion) ridiculous, since I don't ever use Á (it's not a common character in English, to say the least).
Asked
Active
Viewed 48 times
1
-
You should not type an & in an HTML file, but its entity & - if the problem arises in a code block inside your html, you can stop the intellisense suggestion pressing ESC when the suggestion box is shown. – Alex Mazzariol Apr 16 '15 at 20:16
-
I should type & instead of & because... ?? I wonder why, when I type <, the list that appears does NOT pre-select the first entry ( – ultrasonic Apr 16 '15 at 20:34
-
Because your HTML would (probably, if not HTML5) be out of specification. Check this question http://stackoverflow.com/questions/3493405/do-i-really-need-to-encode-as-amp and its comments for a more detailed explanation. IntelliSense in VS tries to guess what you are going to write and select it if it thinks it has enough confidence in its suggestion; as I said, press ESC to dismiss the suggestion before pressing the space bar. – Alex Mazzariol Apr 17 '15 at 08:04
-
@Alex, thanks for that link -- informative. – ultrasonic Apr 20 '15 at 13:03