-
确保你将 Visual Studio Code 应用程序拖到-Applications-文件夹中。
-
接下来,打开 Visual Studio Code 通过(⇧ ⌘P)打开命令调板,输入 shell command,找到 Shell 命令。
VS Code 终端中 code 命令失效的解决方法
解决 Visual Studio Code 中在终端运行 `code` 命令失效的问题。文章提供了解决方案,包括将 VS Code 应用程序拖放到 Applications 文件夹中,以及使用 VS Code 的 Shell 命令。