1. Download Visual Studio Code for macOS.
  2. Open the browser’s download list and find the downloaded archive.
  3. Select the ‘magnifying glass’ icon to open the archive in Finder.
  4. Drag Visual Studio to the Applications folder, making it readily available in the macOS Launchpad.
  5. Add VS Code to your Dock by right-clicking on the icon to raise the context menu and selecting Alternatives, Keep in Dock.

Releasing from the command line

You can also run VS Code from the terminal by typing ‘code’ after including it to the course:

  • Release VS Code.
  • Open the Command Scheme (⇧ ⌘ P (Windows, Linux Ctrl+Shift+P)) and type ‘shell command’ to discover the Shell Command: Set up ‘code’ command in PATH command.
  • Reboot the terminal for the brand-new$ PATH value to work. You’ll have the ability to type’ code.’in any folder to begin

modifying files because folder. Note: If you still have the old code alias in your.bash _ profile (or comparable) from an early VS Code variation, eliminate it and change it by executing the Shell Command: Install ‘code’ command in PATH command.

Alternative manual directions

Instead of running the command above, you can by hand include VS Code to your path, to do so run the following commands:

cat > ~/. bash_profile # Add Visual Studio Code (code) export PATH=”$COURSE:/ Applications/Visual Studio Contents/Resources/app/ bin” EOF

Start a brand-new terminal to pick up your.bash _ profile changes.

Note: The leading slash is needed to prevent $COURSE from expanding during the concatenation. Get rid of the leading slash if you wish to run the export command directly in a terminal.

Keep in mind: Considering that zsh ended up being the default shell in macOS Catalina, run the following commands to add VS Code to your path:

feline > ~/. zprofile # Include Visual Studio Code (code) export COURSE=”$COURSE:/ Applications/Visual Studio Contents/Resources/app/ bin” EOF

Touch Bar assistance

Out of package VS Code includes actions to navigate in editor history as well as the full Debug tool bar to control the debugger on your Touch Bar:

Mojave personal privacy defenses After updating to macOS Mojave variation, you might see dialogs saying”Visual Studio Code would like to access your calendar.” This is because of the new privacy securities in Mojave and is not particular to VS Code. The same dialogs might be displayed when running other applications as well. The dialog is revealed as soon as for each type of personal information and it is fine to choose Do not Allow since VS Code does not need access to those folders. You can read a more comprehensive description in this article.


VS Code ships monthly releases and supports auto-update when a brand-new release is readily available. If you’re prompted by VS Code, accept the latest update and it will get installed (you won’t need to do anything else to get the current bits).

Keep in mind: You can disable auto-update if you prefer to update VS Code by yourself schedule.

You can configure VS Code through settings, color styles, and customized keybindings available through the Code > Preferences menu group.

You may see mention of File > Preferences in paperwork, which is the Preferences menu group location on Windows and Linux. On a macOS, the Preferences menu group is under Code, not File.

Next steps

Once you have actually installed VS Code, these subjects will assist you learn more about VS Code:

Typical questions

Why do I see “Visual Studio Code would like access to your calendar.”

If you are running macOS Mojave variation, you may see dialogs saying “Visual Studio Code would like to access your calendar.” This is due to the new privacy protections in Mojave discussed above. It is great to select Don’t Enable given that VS Code does not need access to those folders.

VS Code fails to upgrade

If VS Code does not update once it restarts, it might be set under quarantine by macOS. Follow the steps in this concern for resolution.

Does VS Code work on Mac M1 makers?

Yes, VS Code supports macOS ARM64 develops that can work on Macs with the Apple M1 chip. Presently, only Experts macOS ARM64 builds are offered.