PJCHENder 未整理筆記

[Note] VSCode Setting 設定筆記

2018-11-23

[Note] VSCode Setting 設定筆記

@(軟體程式與外掛套件)[vscode]

  • "editor.quickSuggestions": false:不要使用建議,VSCode 會自動判斷,如此才會自動在 JSX 中帶出 className 的屬性,否則可能會被 emmet 的建議蓋掉變成 class
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"breadcrumbs.enabled": true,
"typescript.format.enable": false,
"telemetry.enableCrashReporter": false,
"workbench.startupEditor": "newUntitledFile",
"workbench.settings.editor": "json",
"npm.enableScriptExplorer": true,
"window.zoomLevel": 1,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": false,
"editor.tabSize": 2,
"editor.fontSize": 13,
"editor.renderWhitespace": "all",
"editor.renderIndentGuides": true,
"editor.detectIndentation": false,
"editor.quickSuggestions": false,
"editor.renderControlCharacters": true,
"editor.fontFamily": "'Fira Code'",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.minimap.renderCharacters": false,
"extensions.showRecommendationsOnlyOnDemand": true,
"files.autoSave": "off",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.exclude": {
"**/.vscode": true,
"**/bower_components": true,
"**/jspm_packages": true,
"**/node_modules": true
},
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.shell.osx": "zsh",
"terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline",
"terminal.integrated.fontWeightBold": "normal",
// Custom JavaScript Style in VSCode
"javascript.preferences.quoteStyle": "single",
"javascript.format.insertSpaceAfterConstructor": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
// Custom VSCode Theme
"workbench.colorCustomizations": {
"terminal.background": "#01212a",
"terminal.foreground": "#839496",
"terminal.ansiBlack": "#003541",
"terminal.ansiWhite": "#eee8d5",
"terminal.ansiRed": "#dc322f",
"terminal.ansiGreen": "#859901",
"terminal.ansiYellow": "#b58901",
"terminal.ansiBlue": "#268bd2",
"terminal.ansiMagenta": "#d33682"
},
// Emmet
"emmet.includeLanguages": {
"javascript": "html",
"vue": "html",
"vue-html": "html",
"erb": "html"
},
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"emmet.triggerExpansionOnTab": true,
"emmet.showSuggestionsAsSnippets": true,
// Prettier
"prettier.singleQuote": true,
// auto rename tag
"auto-rename-tag.activationOnLanguage": [
"html",
"erb"
],
// TODO highlight
"todohighlight.keywords": [
{
"text": "NOTICE:",
"color": "#ffc600",
"backgroundColor": "transparent"
},
{
"text": "binding.pry",
"color": "#ffc600",
"backgroundColor": "#403E4E"
},
{
"text": "debugger;",
"color": "#ffc600",
"backgroundColor": "#403E4E"
},
{
"text": "<%= console %>",
"color": "#ffc600",
"backgroundColor": "#403E4E"
},
{
"text": "<% if false",
"color": "#ffc600",
"backgroundColor": "#403E4E"
},
{
"text": ".inspect",
"color": "#ffc600",
"backgroundColor": "#403E4E"
},
{
"text": "console.info",
"color": "#ffc600",
"backgroundColor": "rgba(64, 62, 78, 0.6)"
},
// {
// "text": "console.log",
// "color": "#ffc600",
// "backgroundColor": "rgba(64, 62, 78, 0.6)"
// },
{
"text": "FEATURE:",
"color": "#FFF",
"backgroundColor": "#A53860"
},
{
"text": "DEPRECATED:",
"color": "#FFF",
"backgroundColor": "#A53860"
},
{
"text": "REMOVE:",
"color": "#DADADA",
"backgroundColor": "rgba(165, 56, 96, 0.5)"
}
],
"todohighlight.include": [
"**/*.erb",
"**/*.rb",
"**/*.js",
"**/*.jsx",
"**/*.html",
"**/*.css",
"**/*.scss"
],
"todohighlight.exclude": [
"**/*.md"
],
"todohighlight.isEnable": false,
// highlight matching tag
"highlight-matching-tag.leftStyle": {
"borderWidth": "1px",
"borderStyle": "solid",
"borderColor": "#808080",
"textDecoration": "underline"
},
"highlight-matching-tag.rightStyle": {
"borderWidth": "1px",
"borderStyle": "solid",
"borderColor": "#808080",
"textDecoration": "underline"
},
// Bracket Pair Colorizer
"bracketPairColorizer.showHorizontalScopeLine": false,
// "bracketPairColorizer.showBracketsInGutter": true,
/**
* Settings Sync
**/
"sync.gist": "ee871928cb7c0d0ba43c679e4a85b359",
"sync.lastUpload": "2018-08-14T06:06:06.453Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "",
"sync.forceDownload": false,
"sync.anonymousGist": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"files.associations": {
"*.strings": "swift",
"*.erb": "erb"
},
"workbench.editor.showTabs": true,
// gitlens
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"gitlens.mode.active": "zen",
}

掃描二維條碼,分享此文章