这个问题说明了一切。

如何打开VS Code编辑器

windows cmd Linux和MAC终端

例如,为记事本++我写

>开始记分卡+测试。txt

顺便说一下,编辑器很棒(跨平台)!谢谢你,纳德拉!

你可以从微软下载


当前回答

在DOS命令提示符中输入“code”对我来说很有用

其他回答

对于VS Code内部的Windows用户(VS Code doc):

添加目录“C:\Program Files (x86)\Microsoft VS Code Insiders\bin” %PATH%环境变量。

然后进入你想用vs code打开的文件夹,输入: code-insders。

这适用于Windows:

CMD> start vscode://file/o:/git/libzmq/builds/msvc/vs2017/libzmq.sln

但是如果文件路径有空格,通常会在它周围加上双引号,就像这样:

CMD> start "vscode://file/o:/git/lib zmq/builds/msvc/vs2017/libzmq.sln"

但是这将使start混乱,它可以接受双引号标题,因此它将创建一个以此名称作为标题的窗口,而不打开项目。

CMD> start "title" "vscode://file/o:/git/lib zmq/builds/msvc/vs2017/libzmq.sln"

在Windows操作系统下,可以为系统环境变量添加如下路径。

C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin

窗口:

在系统环境变量中添加代码CLI路径。

在windows默认代码cli路径是(用户名是你的pc用户名)C:\Users\username\AppData\Local\Programs\Microsoft VS code \bin

然后你可以像这样检查你的项目文件夹,打开新的cmd并键入代码。

VS Code是2018年必须拥有的代码编辑器

对于Windows 10用户来说,很多事情都是可能的,就像Mac OS用户输入代码一样。

寻找你VS Code\bin文件夹路径,例如C:\Program Files\Microsoft VS Code\bin。bin文件夹包含一个称为code的文件。cmd。

如果您不确定您的路径是什么,请键入where代码。Cmd,然后复制它,不带\代码。在…\bin后输入CMD。

按照下面的步骤,你会为你使用的操作系统感到自豪。

Search for "Advanced System Setting" from Start. Click on Environment Variables. On System Variables choose "path" from Variable tab and click on Edit. Click on New on the right side of the popup window. Copy your path from the Explorer's breadcrumb path and paste it into the new opened path in step 4, example:- C:\Program Files\Microsoft VS Code\bin. Click Ok on all the open windows to confirm changes and restart your cmd . Go to your cmd and navigate to you working directory on server and type code . .

C:>cd wamp64\www\react-app> code在Windows上用VS Code打开。

Visual Studio Code还包括一个命令提示符(终端)窗口,您可以通过以下方式打开其中一个或多个窗口: 按键盘上的Ctrl + '键。

希望这能帮助一些人,就像它曾经帮助过我们很多人一样。