This list contains some of my personal settings and optimizations I normally use in VS Code.
Show whitespaces
VS Code 1.6.0 and Greater
As mentioned by aloisdg below, editor.renderWhitespace
is now an enum taking either none
, boundary
or all
. To view all whitespaces:
"editor.renderWhitespace": "all",
Before VS Code 1.6.0
Before 1.6.0, you had to set editor.renderWhitespace
to true
:
"editor.renderWhitespace": true
Source: https://stackoverflow.com/questions/30140595/show-whitespace-characters-in-visual-studio-code
Lint .vue files
Add the following part to your settings.json and VS Code will lint vue files like js files.
"eslint.validate": [
{
"language": "vue",
"autoFix": false
},
],