我最近安装了Visual Studio Code,我喜欢它!过去,我使用了sublime文本2/3,并在某些时候复制了代码以允许subl .
命令使用sublime打开当前目录。
问题:
所需的别名/链接/命令应为
code .
Does the command on this video
最佳答案
从1.0版开始,使用命令面板(Install 'Code' command in path
)中的命令View | Command Palette
使代码可用于命令行。
历史答案:
使用VSCode 0.3.0,启动脚本现在应配置为:
code () {
VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*
}
更新:
如果这不适用于您,请卸载VSC并重新安装;否则,请重新安装。因为这仅适用于0.3.0+
关于macos - 如何设置链接以从OSX上的终端打开Visual Studio Code?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30159158/