Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 4.01 KB

setup.md

File metadata and controls

69 lines (48 loc) · 4.01 KB

配置 Visual Studio Code

VS Code 启动和运行都比较快速简单。 Follow the platform specific guides below as well as the list of handy tools.

Mac OS X

  1. 下载 Visual Studio Code Mac OS X 版.
  2. Double-click on VSCode-osx.zip to expand the contents.
  3. Drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad.
  4. 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.

Linux

  1. 下载 Visual Studio Code for Linux.
  2. Make a new folder and extract VSCode-linux-x64.zip inside that folder.
  3. 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.

Windows

  1. 下载 Visual Studio Code for Windows.
  2. 双击 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.

Additional Tools

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.