[TOC]
# 1.安装vscode
安装插件
~~~
Auto Close Tag
Live Server
css peek
open in browser
view in browser
Path Autocomplete
HTML CSS Support
Auto Rename Tag
Color Highlight
One Dark Pro
Beautify
//文件图标主题
vscode-icons
Material Icon Theme
~~~
在设置中添加
~~~
"editor.parameterHints": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
~~~
# 2.快捷键配置
~~~
[
{
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
{
"key": "ctrl+w",
"command": "extension.openInDefaultBrowser"
},
{
"key": "alt+b",
"command": "-extension.openInDefaultBrowser"
}
]
~~~
# 3.npm的配置
~~~
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
~~~