vscode

记录一下 vscode 的使用习惯

功能

外观

语言/语法支持

安装脚本

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
#!/usr/bin/python

import subprocess

plugins = """xyz.local-history
esbenp.prettier-vscode
ms-vscode-remote.vscode-remote-extensionpack
christian-kohler.path-intellisense
eamodio.gitlens
nhoizey.gremlins
miguelsolorio.fluent-icons
vscode-icons-team.vscode-icons
mikestead.dotenv
EditorConfig.EditorConfig
Dart-Code.flutter
golang.Go
zxh404.vscode-proto3
jebbs.plantuml
octref.vetur
donjayamanne.python-extension-pack
DigitalBrainstem.javascript-ejs-support
bungcip.better-toml
svelte.svelte-vscode
matklad.rust-analyzer
serayuzgur.crates"""

list = plugins.split("\n")

for _, v in enumerate(list):
subprocess.run(["code", "--install-extension", v])

配置文件

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
{
"[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[vue]": { "editor.defaultFormatter": "octref.vetur" },
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[html]": { "editor.defaultFormatter": "vscode.html-language-features" },

"files.associations": {
"*.es": "javascript",
"*.uml": "yuml",
"*.vue": "vue",
".env.*": "dotenv",
"*.conf": "ini",
"*.html": "html"
},

"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-icons",
"workbench.productIconTheme": "fluent-icons",
"editor.fontFamily": "'JetBrains Mono'",
"terminal.integrated.fontFamily": "'JetBrains Mono'",

"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.renderWhitespace": "boundary",
"editor.wordWrap": "on",
"editor.rulers": [80, 120, 150, 200],
"editor.renderControlCharacters": true,

"window.title": "${rootName}${separator}${dirty}${activeEditorShort}${separator}${appName}",
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"update.mode": "start",
"files.simpleDialog.enable": true,
"files.eol": "\n",
"workbench.list.smoothScrolling": true,
"workbench.fontAliasing": "auto",
"workbench.startupEditor": "readme",
"search.smartCase": true,
"remote.downloadExtensionsLocally": false,

// zen mode
"zenMode.centerLayout": false,
// screencast mode
"screencastMode.keyboardOverlayTimeout": 1000,

"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.locale": "zh-CN",

// inlayHints
"typescript.inlayHints.parameterTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "all",
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"javascript.inlayHints.parameterTypes.enabled": true,
"javascript.inlayHints.parameterNames.enabled": "all",
"javascript.inlayHints.functionLikeReturnTypes.enabled": true,

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

"path-intellisense.extensionOnImport": true
}
作者

小树

发布于

2022-04-23

更新于

2022-05-02

许可协议

评论

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×