目錄:
- 本機環境
- 配置 VScode
一、本機環境
本機系統: Mac
Visual Studio Code: 1.44.2
二、配置 VScode
2.1、打開 settings.json
文件:
頂部菜單欄:
Code
-->Preferences
-->Settings
還是快捷鍵打開吧!!:
‘command
’ 鍵 + ‘,
’ 鍵
2.2 然後輸入:shell,如下圖,點擊修改:
2.3 settings.json
文件主要內容如下(主要是增加 ‘.osx’ 和 ‘.linux’ 結尾的屬性值):
{
"editor.fontSize": 14,
"files.autoSave": "onFocusChange",
"git.autofetch": true,
"window.zoomLevel": 0,
"terminal.integrated.shell.osx": "/bin/zsh",
"terminal.integrated.automationShell.linux": "/bin/zsh",
"workbench.colorTheme": "Dark Chrome DevTools"
}
2.4 最後重啓電腦,即可在 VSCode
運行 npm
等命令!!!
寫給自己的隨筆,有問題歡迎指出