### 1.到官网下载安装包:
[https://code.visualstudio.com/](https://code.visualstudio.com/)
安装:可自行选择安装目录,但建议使用默认安装目录
### 2.快捷键的配置
>打开visual code,依次点击->文件->首选项->键盘快捷方式->keybinding.json(搜索栏的下面)->将下面的内容复制粘贴->保存
~~~
[
{
"key": "alt+/",
"command": "editor.action.triggerSuggest",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus"
},
{
"key": "shift+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
{
"key": "ctrl+w",
"command": "extension.viewInBrowser",
"when": "editorTextFocus"
},
{
"key": "ctrl+f1",
"command": "-extension.viewInBrowser",
"when": "editorTextFocus"
}
]
~~~
### 3.拓展程序添加:
Auto Close Tag
Auto Rename Tag
Bootstrap 3 Snippets
Color Highlight
CSS Peek
HTML CSS Support
Live Server
open in browser
Path Autocomplete
view-in-browser