gpt4 book ai didi

macos - 如何在 OSX 上从命令行打开 Visual Studio Code?

转载 作者:行者123 更新时间:2023-12-03 04:01:20 24 4
gpt4 key购买 nike

docs提到一个名为 code 的可执行文件,但我不确定在哪里可以找到它,以便我可以将其放在我的路径中。我从 VSCode 站点下载的 zip 不包含任何此类可执行文件。 (我可以很好地运行.app。)

这是 Windows 独有的功能吗?

最佳答案

来自Visual Studio Code Setup page :

Tip: If you want to run VS Code from the terminal by simply typing 'code', VS Code has a command, Shell Command: Install 'code' command in PATH, to add 'code' to your $PATH variable list.

After installation, launch VS Code. Now open the Command Palette (F1 or ++P on Mac) and type shell command to find the Shell Command: Install 'code' command in PATH command.

After executing the command, restart the terminal for the new $PATH value to take effect. You'll be able to simply type 'code .' in any folder to start editing files in that folder.

关于macos - 如何在 OSX 上从命令行打开 Visual Studio Code?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29971053/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com