bash:代码:找不到命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35327658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 14:13:47  来源:igfitidea点击:

bash: code: command not found

bashvisual-studio-code

提问by Nathan Brenner

On a windows 8.1, prefer mac. Just downloaded visual studio code. Git Bash installed. If I type code, VS Code should open up a new file, but bash is telling me it doesn't know of that command. Restarting/reinstalling didn't help. When I downloaded, the option to add it to the PATH was selected. What do I need to do to add this command so I can open directories from the command prompt?

在 Windows 8.1 上,更喜欢 mac。刚刚下载了visual studio代码。安装了 Git Bash。如果我输入code,VS Code 应该打开一个新文件,但是 bash 告诉我它不知道该命令。重新启动/重新安装没有帮助。当我下载时,选择了将其添加到 PATH 的选项。我需要做什么才能添加此命令,以便我可以从命令提示符打开目录?

回答by Daniel Imms

Launching via Git Bash is not currently supported, this is being tracked in issue #1704on GitHub.

当前不支持通过 Git Bash 启动,这在 GitHub 上的问题 #1704 中进行了跟踪。

回答by Rizo

facing same problem but found solution on git

面临同样的问题,但在 git 上找到了解决方案

download now

现在就下载