Skip to content
On this page

Visual Studio Code settings

My preference of Code settings.

File locations

  • Windows: %APPDATA%\Code\User\settings.json
  • macOS: $HOME/Library/Application Support/Code/User/settings.json
  • Linux: $HOME/.config/Code/User/settings.json
json
{
	// Debug
	"debug.onTaskErrors": "showErrors",
    "debug.focusWindowOnBreak": false,

	// Diff editor
	"diffEditor.ignoreTrimWhitespace": false,

	// Editor
	"breadcrumbs.enabled": false,
	"editor.fontSize": 13,
	"editor.tabSize": 4,
	"editor.insertSpaces": false,
	"editor.minimap.enabled": false,
	"editor.autoClosingBrackets": "never",
	"editor.detectIndentation": false,
	"editor.autoClosingQuotes": "never",
	"editor.autoSurround": "never",
	"editor.wordWrap": "off",
	"editor.maxTokenizationLineLength": 20000,
	"editor.lightbulb.enabled": false,

	// Explorer
	"explorer.openEditors.visible": 0,
	"explorer.confirmDragAndDrop": false,

	// Files
	"files.autoSave": "off",
	"files.hotExit": "onExit",
	"files.defaultLanguage": "",
	"files.trimTrailingWhitespace": true,
	"files.insertFinalNewline": true,
	"files.exclude": {
		"**/__pycache__": true,
		"**/.git": true,
		"**/.DS_Store": true,
		"**/.hg": true,
		"**/.svn": true,
		"**/.vs": true,
		"**/CVS": true,
		"**/node_modules": true,
	},
	"files.watcherExclude": {
		"**/.git/objects/**": true,
		"**/.git/subtree-cache/**": true,
		"**/dist/*/**": true,
		"**/node_modules/*/**": true,
	},
	"extensions.ignoreRecommendations": true,
	"telemetry.telemetryLevel": "crash",
	"update.mode": "manual",
	"window.newWindowDimensions": "maximized",
	"comments.openPanel": "neverOpen",

	// Git
	"git.suggestSmartCommit": false,
	"git.enabled": true,

	// Search
	"search.exclude": {
		"**/.git": true,
		"**/.idea": true,
		"**/.vscode": true,
		"**/bootstrap": true,
		"**/bower_components": true,
		"**/dist": true,
		"**/node_modules": true,
		"**/public/css": true,
		"**/public/js": true,
		"**/vendor": true,
		"package-lock.json": true,
		"yarn.lock": true,
	},

	// Workbench
	"workbench.startupEditor": "newUntitledFile",
	"workbench.colorTheme": "Monokai Dimmed",
	"workbench.settings.editor": "json",
	"workbench.tree.renderIndentGuides": "none",
	"workbench.iconTheme": "material-icon-theme",

	/**
	 * Languages
	 */

	// Dart
	"[dart]": {
		"editor.formatOnSave": true,
		"editor.formatOnType": true,
		"editor.selectionHighlight": false,
		"editor.suggest.snippetsPreventQuickSuggestions": false,
		"editor.suggestSelection": "first",
		"editor.tabCompletion": "onlySnippets",
		"editor.wordBasedSuggestions": false,
	},

	// JavaScript
	"javascript.updateImportsOnFileMove.enabled": "always",

	// TypeScript
	"typescript.updateImportsOnFileMove.enabled": "always",
	"typescript.autoClosingTags": false,
	"typescript.preferences.quoteStyle": "single",
    "typescript.preferences.importModuleSpecifier": "relative",

	/**
	 * Extensions
	 */

	// Dart
	"dart.showInspectorNotificationsForWidgetErrors": false,
	"dart.showMainCodeLens": false,
	"dart.flutterCreateAndroidLanguage": "java",
	"dart.warnWhenEditingFilesOutsideWorkspace": false,

	// Eslint
	"eslint.packageManager": "yarn",
	"eslint.codeAction.showDocumentation": {
		"enable": false
	},

	// Gitlens
	"gitlens.blame.avatars": false,
	"gitlens.blame.highlight.enabled": false,
	"gitlens.showWhatsNewAfterUpgrades": false,
	"gitlens.currentLine.enabled": false,
	"gitlens.blame.heatmap.enabled": false,
	"gitlens.codeLens.recentChange.enabled": false,
	"gitlens.codeLens.authors.enabled": false,
	"gitlens.views.commits.avatars": false,
	"gitlens.views.showRelativeDateMarkers": false,
	"gitlens.views.commits.pullRequests.showForBranches": false,
	"gitlens.views.commits.pullRequests.enabled": false,

	// Material Icons
	"material-icon-theme.showWelcomeMessage": false,
	"material-icon-theme.showReloadMessage": false,
	"material-icon-theme.folders.theme": "none",
	"material-icon-theme.activeIconPack": "none",
	"material-icon-theme.files.associations": {
			"*.ts": "typescript",
			"*.module.ts": "Angular",
			"tsconfig.e2e.json": "Tsconfig",
			"tsconfig.lib.json": "Tsconfig",
			"tsconfig.lib.prod.json": "Tsconfig",
			"*.conf.js": "Protractor",
	},

	// SCSS
	"scss.scannerExclude": [
		"**/.git",
		"**/node_modules/!(bootstrap)",
		"**/dist"
	],

	// Vetur
	"vetur.useWorkspaceDependencies": true,
}
{
	// Debug
	"debug.onTaskErrors": "showErrors",
    "debug.focusWindowOnBreak": false,

	// Diff editor
	"diffEditor.ignoreTrimWhitespace": false,

	// Editor
	"breadcrumbs.enabled": false,
	"editor.fontSize": 13,
	"editor.tabSize": 4,
	"editor.insertSpaces": false,
	"editor.minimap.enabled": false,
	"editor.autoClosingBrackets": "never",
	"editor.detectIndentation": false,
	"editor.autoClosingQuotes": "never",
	"editor.autoSurround": "never",
	"editor.wordWrap": "off",
	"editor.maxTokenizationLineLength": 20000,
	"editor.lightbulb.enabled": false,

	// Explorer
	"explorer.openEditors.visible": 0,
	"explorer.confirmDragAndDrop": false,

	// Files
	"files.autoSave": "off",
	"files.hotExit": "onExit",
	"files.defaultLanguage": "",
	"files.trimTrailingWhitespace": true,
	"files.insertFinalNewline": true,
	"files.exclude": {
		"**/__pycache__": true,
		"**/.git": true,
		"**/.DS_Store": true,
		"**/.hg": true,
		"**/.svn": true,
		"**/.vs": true,
		"**/CVS": true,
		"**/node_modules": true,
	},
	"files.watcherExclude": {
		"**/.git/objects/**": true,
		"**/.git/subtree-cache/**": true,
		"**/dist/*/**": true,
		"**/node_modules/*/**": true,
	},
	"extensions.ignoreRecommendations": true,
	"telemetry.telemetryLevel": "crash",
	"update.mode": "manual",
	"window.newWindowDimensions": "maximized",
	"comments.openPanel": "neverOpen",

	// Git
	"git.suggestSmartCommit": false,
	"git.enabled": true,

	// Search
	"search.exclude": {
		"**/.git": true,
		"**/.idea": true,
		"**/.vscode": true,
		"**/bootstrap": true,
		"**/bower_components": true,
		"**/dist": true,
		"**/node_modules": true,
		"**/public/css": true,
		"**/public/js": true,
		"**/vendor": true,
		"package-lock.json": true,
		"yarn.lock": true,
	},

	// Workbench
	"workbench.startupEditor": "newUntitledFile",
	"workbench.colorTheme": "Monokai Dimmed",
	"workbench.settings.editor": "json",
	"workbench.tree.renderIndentGuides": "none",
	"workbench.iconTheme": "material-icon-theme",

	/**
	 * Languages
	 */

	// Dart
	"[dart]": {
		"editor.formatOnSave": true,
		"editor.formatOnType": true,
		"editor.selectionHighlight": false,
		"editor.suggest.snippetsPreventQuickSuggestions": false,
		"editor.suggestSelection": "first",
		"editor.tabCompletion": "onlySnippets",
		"editor.wordBasedSuggestions": false,
	},

	// JavaScript
	"javascript.updateImportsOnFileMove.enabled": "always",

	// TypeScript
	"typescript.updateImportsOnFileMove.enabled": "always",
	"typescript.autoClosingTags": false,
	"typescript.preferences.quoteStyle": "single",
    "typescript.preferences.importModuleSpecifier": "relative",

	/**
	 * Extensions
	 */

	// Dart
	"dart.showInspectorNotificationsForWidgetErrors": false,
	"dart.showMainCodeLens": false,
	"dart.flutterCreateAndroidLanguage": "java",
	"dart.warnWhenEditingFilesOutsideWorkspace": false,

	// Eslint
	"eslint.packageManager": "yarn",
	"eslint.codeAction.showDocumentation": {
		"enable": false
	},

	// Gitlens
	"gitlens.blame.avatars": false,
	"gitlens.blame.highlight.enabled": false,
	"gitlens.showWhatsNewAfterUpgrades": false,
	"gitlens.currentLine.enabled": false,
	"gitlens.blame.heatmap.enabled": false,
	"gitlens.codeLens.recentChange.enabled": false,
	"gitlens.codeLens.authors.enabled": false,
	"gitlens.views.commits.avatars": false,
	"gitlens.views.showRelativeDateMarkers": false,
	"gitlens.views.commits.pullRequests.showForBranches": false,
	"gitlens.views.commits.pullRequests.enabled": false,

	// Material Icons
	"material-icon-theme.showWelcomeMessage": false,
	"material-icon-theme.showReloadMessage": false,
	"material-icon-theme.folders.theme": "none",
	"material-icon-theme.activeIconPack": "none",
	"material-icon-theme.files.associations": {
			"*.ts": "typescript",
			"*.module.ts": "Angular",
			"tsconfig.e2e.json": "Tsconfig",
			"tsconfig.lib.json": "Tsconfig",
			"tsconfig.lib.prod.json": "Tsconfig",
			"*.conf.js": "Protractor",
	},

	// SCSS
	"scss.scannerExclude": [
		"**/.git",
		"**/node_modules/!(bootstrap)",
		"**/dist"
	],

	// Vetur
	"vetur.useWorkspaceDependencies": true,
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158