VS Code 启动和运行都比较快速简单。 Follow the platform specific guides below as well as the list of handy tools.
- 下载 Visual Studio Code Mac OS X 版.
- Double-click on
VSCode-osx.zip
to expand the contents. - Drag
Visual Studio Code.app
to theApplications
folder, making it available in theLaunchpad
. - 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 usezsh
).
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.
- 下载 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 theCode
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.
- 下载 Visual Studio Code for Windows.
- 双击
VSCodeSetup.exe
开始安装.这只需要一会.
Tip: Visual Studio Code will be added to your path, so from the console you can simply type
code .
to open VS Code on that folder!
Tip: You might need to log off after the installation for the change to the
PATH
environmental variable to take effect.
Visual Studio Code integrates with existing tool chains. We think the following tools will enhance your development experiences.
- ASP.NET 5 - a lean and composable framework for building web and cloud applications, fully open source and available on GitHub
- Node.js (includes NPM) - a platform for easily building fast, scalable network applications
- Git - VS Code has built-in support for source code control using Git
- Yeoman - an application scaffolding tool, you can think of this as
File | New Project
for VS Code - generator-aspnet - a yeoman generator for scaffolding ASP.NET 5 applications, run
npm install -g generator-aspnet
to install - hottowel - a yeoman generator for quickly creating AngularJS applications, run
npm install -g generator-hottowel
to install - Express - an application framework for Node.js applications, uses the Jade template engine
- gulp - a streaming task runner system, integrates with VS Code tasks
- mocha - a JavaScript test framework that runs on Node.js
- bower - a client side package manager
- TypeScript - brings structure and strong typing to your JavaScript code, without compromising the good parts
- TypeScript definition manager - search and download 100's of TypeScript definition files for popular JavaScript frameworks, providing great IntelliSense in VS Code
Now you have installed and set up VS Code. Let's get going...
- The Basics - Basic orientation around VS Code
- Editing Evolved - Lint, IntelliSense, Lightbulbs, Peek and Goto Definition and more
- Debugging - This is where VS Code really shines
Q: What are the system requirements for VS Code?
A: We have a list of System Requirements.