Requirements
- Administrator rights on your computer
- About 500 MB free disk space
Download
Download the editor from the official website: code.visualstudio.com.
Installation
Windows
- Run the downloaded
.exeinstaller. - Tick Add to PATH and Add “Open with Code” action.
- Finish and launch the editor.
macOS
- Open the downloaded
.zipand drag Visual Studio Code into Applications. - Launch it, open the Command Palette (
Cmd + Shift + P) and run Shell Command: Install ‘code’ command in PATH.
Linux
sudo snap install code --classic
Or install the .deb / .rpm package from the download page.
Configuration
Install the recommended extensions from the terminal:
code --install-extension esbenp.prettier-vscode
code --install-extension dbaeumer.vscode-eslint
code --install-extension expo.vscode-expo-tools
Tip
Turn on Format on Save (Settings → search “format on save”). It removes a whole category of messy-code problems.
Verification
Run each command in a new terminal window.
code --version→ expect Prints a version number such as 1.9x.x
Common errors
'code' command not found
Fix
Open VS Code → Command Palette → "Shell Command: Install 'code' command in PATH", then reopen the terminal.
