安装原创
vscode 的安装
brew install --cask visual-studio-code
不支持 brew 的直接到官网下载进行安装吧。
# PATH
添加系统路径。
Open the Command Palette via ⇧ + ⌘ + P
and type shell command to find the Shell Command:
Use the Uninstall 'code' command in the PATH command before the "Install 'code' command in PATH" command.
# settings
通过快捷键 ⌘ + ,
打开设置,点击 VSCODE
窗口右上角的 打开设置(json)
{
"workbench.sideBar.location": "right", // 侧边栏 靠右
"files.autoSave": "onFocusChange", // 自动保存
"editor.formatOnSave": true, // 保存时自动格式化
"[markdown]":{
"editor.wordWrap": "on",
"editor.defaultFormatter": "yzhang.markdown-all-in-one",
// "editor.defaultFormatter": "mervin.markdown-formatter", // 开启markdwon 自动换行
// "editor.defaultFormatter": "esbenp.prettier-vscode",// markdwon 格式化
},
"diffEditor.wordWrap": "on",
"editor.wordWrap": "on",
}
警告
注意设置,千万别和其他的有冲突,不然不会生效!
上次更新: 2022/08/20, 00:50:36