Categories
未分类

在 macOS 上从命令行运行 VS Code

打开 VS Code

打开命令面板(Command Palette)(快捷键 ⇧⌘P),通过输入 shell command 来查找安装(Install)项,点击即可。见下图。

用如下命令,验证下是否安装正常。

$ which code
/usr/local/bin/code
$ ls -al /usr/local/bin/code
/usr/local/bin/code -> /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code

参考文档

扫码阅读和分享

Leave a Reply

Your email address will not be published. Required fields are marked *