Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get VS HTML editor to default to single quotes?

Autocompletion in the Visual Studio HTML editor inserts double quotes (e.g. <input type="text").

Does anyone know if there's a setting that will change the default to automatically insert single quotes (e.g. <input type='text')?

thanks, Michael

like image 486
nelsonmichael Avatar asked Nov 06 '08 21:11

nelsonmichael


People also ask

How do you add single quotes in vsCode?

After opening the quick search, type ">user settings" and click "Preferences: Open User Settings". In the search box of your preferences, type "prettier. singleQuote" and click the checkbox for prettier single quote.

Does HTML care whether you use single quotes or double quotes?

The HTML community has long ago adopted using double quotes in HTML attributes. Sure we can use single, but why fight the community? The JavaScript community has long ago adopted using single quotes in code, allowing for the insertion of double quotes on attributes of appended HTML snippets.


1 Answers

There is no option built into Visual Studio to do this. There might be a third party plugin to help you out, but if so I am not familiar with it.

like image 165
Josh Avatar answered Oct 09 '22 09:10

Josh