vscode 配置

安装

Centos

1
2
3
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

字体配置

Command + Shift + P -> settings

1
2
3
4
5
"editor.fontSize": 14,
"editor.fontLigatures": true

"editor.fontFamily": "Source Code Pro, Consolas, 'Courier New', monospace",
"editor.fontFamily":"'Fira Code', Consolas, 'Courier New', monospace",

关闭自动检查更新

1
"update.channel": "none"

排除node_modules

Use files.exclude

Go to File -> Preferences -> Settings (or on Mac Code -> Preferences -> Settings)

Pick the workspace settings tab

Add this code to the settings.json file displayed on the right side:

1
2
3
4
5
6
7
8
9
10
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true,
"node_modules": true,
"**/jspm_packages": true
}