Below are the settings and extensions for visual studio code editor (vscode) to make the most out of it. These are the optimized settings for vscode to make the life of web developers easy.
Goto File > Preferences > User Settigs
and paste the following Settings in User Settings
// Place your settings in this file to overwrite the default settings
{
"editor.detectIndentation": false,
"editor.fontFamily": "Ubuntu Mono",
"editor.fontSize": 20,
"editor.lineHeight": 24,
"editor.formatOnType": true,
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.wordWrap": "on",
"files.trimTrailingWhitespace": true,
"html.format.indentInnerHtml": true,
"html.format.preserveNewLines": true,
"html.format.unformatted": "code",
"html.format.wrapLineLength": 0,
"telemetry.enableTelemetry": false,
"javascript.implicitProjectConfig.checkJs" : true,
"window.newWindowDimensions": "maximized",
"window.openFoldersInNewWindow": "off",
"workbench.activityBar.visible": true,
"files.hotExit": "off",
"window.restoreWindows": "none"
}
Note : The setting files.exclude
is especially for Angular 2. If you need git you set the value of git.enabled
to true.
Another minimal settings for vscode. It will not auto format code. :
{
"editor.detectIndentation": true,
"editor.fontFamily": "Ubuntu Mono",
"editor.fontSize": 24,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.wordWrap": "on",
"html.format.enable": false,
"javascript.format.enable": false,
"telemetry.enableTelemetry": false,
"javascript.implicitProjectConfig.checkJs" : true,
"typescript.check.tscVersion": false,
"window.newWindowDimensions": "maximized",
"window.openFoldersInNewWindow": "off"
}
Extensions
- AB HTML Formatter
- Auto Close Tag
- Auto Rename Tag
- Bracket Pair Colorizer
- EditorConfig for Visual Studio Code
- HTML Snippets
- JavaScript (ES6) snippets
- JS, CSS, HTML Formatting
- Open in Browser
- Prettier – Code Formatter
- Whitespacer
- Monaki Black theme
For Nodejs code to work
npm install typings -g -S