Turn off automatic quote insertion in Visual Studi

2019-06-16 03:57发布

问题:

I am editing a huge number of legacy ASP pages that have been converted over to C#. One problem is that the HTML attributes need to be adjusted to correct some double quote problems.

My problem is that when I add a double quote VS dutifully inserts the closing quote in the wrong place. I then need to go an delete that quote and enter the closing quote. I also have to watch that when I insert the closing quote it does not throw in another extra quote.

I googled for a solution, I am sure it is easy to turn off. But I could not find the right keywords to suss it out.

回答1:

There are 2 options I'm aware of which control the insertion of the double quotes for ASPX pages.

  • Tools -> Options
  • Text Editor -> HTML -> Formatting

Under the Automatic Formatting Options try toggling the following options

I have both of these disabled and don't see the issue you're describing.