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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With