How to Install Visual Studio Code
Introduction
Visual Studio Code (VS Code) is one of the most popular code editors in the world. It’s fast, lightweight, and perfect for Python, JavaScript, web development, and many other languages. This guide will walk you through installing VS Code on Windows, macOS, or Linux.
Step 1: Download VS Code
Visit the official Visual Studio Code website:
https://code.visualstudio.com/
Select your operating system:
- Windows (.exe installer)
- macOS (.dmg installer)
- Linux (.deb or .rpm package)
Step 2: Install VS Code
Windows
- Run the installer.
- Tick "Add to PATH" — this is important.
- Choose install location.
- Finish installation.
macOS
- Open the .dmg file.
- Drag VS Code into the Applications folder.
- Launch it from Applications.
Linux
- Download the .deb or .rpm file.
- Install using your package manager.
- Launch VS Code from your applications menu.
Step 3: Verify Installation
Open your terminal and type:
code --version
If VS Code is installed correctly, you will see version information displayed.
Step 4: Install Python Support
To write Python code in VS Code, install the official Python extension:
- Open VS Code
- Go to the Extensions tab
- Search for Python
- Install the extension by Microsoft
This adds linting, debugging, IntelliSense, and more.
Troubleshooting
- If
codeisn’t recognised, restart your computer. - Make sure “Add to PATH” was selected during installation.
- On macOS, allow VS Code through security settings if prompted.
- On Linux, ensure your package manager installed all dependencies.
Conclusion
VS Code is a powerful, flexible editor that makes coding easier and more enjoyable. With extensions, themes, and built-in tools, it’s perfect for beginners and advanced developers alike.
Now that VS Code is installed, you’re ready to start building projects, writing scripts, and exploring new languages.