配置 VScode

关上 settings.json 文件:

command’ + ‘,’ 键

而后输出:shell,如下图,点击批改:

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"}

最初重启命令行,即可在 VSCode 运行 npm 等命令