这个问题说明了一切。

如何打开VS Code编辑器

windows cmd Linux和MAC终端

例如,为记事本++我写

>开始记分卡+测试。txt

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

你可以从微软下载


当前回答

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

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

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

其他回答

根据文档:

Mac OS X Download Visual Studio Code for Mac OS X. Double-click on VSCode-osx.zip to expand the contents. Drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad. Add VS Code to your Dock by right-clicking on the icon and choosing Options, Keep in Dock. Tip: If you want to run VS Code from the terminal, append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh). code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;} Now, you can simply type code . in any folder to start editing files in that folder. Tip: You can also add it to VS Code Insiders build by changing "com.microsoft.VSCodeInsiders". Also if you don't to type the whole word code, just change it to c. Linux Download Visual Studio Code for Linux. Make a new folder and extract VSCode-linux-x64.zip inside that folder. Double click on Code to run Visual Studio Code. Tip: If you want to run VS Code from the terminal, create the following link substituting /path/to/vscode/Code with the absolute path to the Code executable sudo ln -s /path/to/vscode/Code /usr/local/bin/code Now, you can simply type code . in any folder to start editing files in that folder.

在mac上的其他简单方法是:进入命令面板[Shift⇧+ Command(⌘)+P],并键入:Shell命令:在PATH中安装'code'命令

Shell命令'code'成功安装在PATH中。

然后您也可以使用来自终端的代码。

打开命令行并输入:

cd your_folder_path
code.cmd . 

or

code.cmd your_folder_path

它将在Visual Studio Code中打开您的文件夹。 执行“cd your_folder_path”命令后,请确保您在正确的文件夹中。

在linux中,如果你使用代码。它将打开终端所在文件夹中的VS Code。 使用代码。文件名。cs它会在文件夹中打开该文件。

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 + '键。

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