Welcome to Visual Studio Code
Visual Studio Code is a lightweight but powerful source code editor that runs on your desktop. It comes with built-in support for JavaScript, TypeScript, and Node.js, and has a rich ecosystem of extensions for other languages and runtimes.Download Visual Studio Code
Download the appropriate installer for your operating system:
- Windows: Download the
.exeinstaller - macOS: Download the
.zipor use Homebrew:brew install --cask visual-studio-code - Linux: Download
.deb(Debian/Ubuntu) or.rpm(Red Hat/Fedora/SUSE) packages
VS Code is updated monthly with new features and bug fixes. For the latest daily builds, install the Insiders build.
Install and Launch
WindowsLaunch VS Code by running
- Run the installer (
.exefile) - Follow the installation wizard
- Launch VS Code from the Start menu or desktop shortcut
- Open the downloaded
.zipfile - Drag Visual Studio Code to your Applications folder
- Launch from Applications or Spotlight
code from the terminal or from your application menu.Open Your First Project
You can start coding immediately by opening a folder or creating a new file.Open a folder:
- Click File > Open Folder (Windows/Linux) or File > Open (macOS)
- Select any folder containing your project files
- Click File > New File or press
Ctrl+N(Windows/Linux) orCmd+N(macOS) - Start typing your code
- Save with
Ctrl+S(Windows/Linux) orCmd+S(macOS)
Write Your First Code
Let’s create a simple “Hello World” program. VS Code supports many programming languages out of the box.
- JavaScript
- Python
- TypeScript
- HTML/CSS
Create a new file called Run it in the integrated terminal:
hello.js:Explore Key Features
Now that you have VS Code running, explore these essential features:Command Palette
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS) - Access all VS Code commands from one place
- Try typing “theme” to change your color theme
- Start typing in your code file
- VS Code provides smart completions based on variable types, function definitions, and imported modules
- Press
Ctrl+Spaceto trigger suggestions manually
- Press
Ctrl+`to open the terminal - Run commands without leaving the editor
- Supports multiple terminal instances
- Click the Extensions icon in the Activity Bar (left sidebar) or press
Ctrl+Shift+X - Search for extensions by language, framework, or tool
- Popular extensions: Python, ESLint, Prettier, GitLens
Pro Tip
Use
Ctrl+P (Quick Open) to quickly navigate to files by typing part of their name. Add : followed by a line number to jump to a specific line.Customize Your Setup
Make VS Code your own by customizing settings and keybindings.User Settings
- Open with File > Preferences > Settings or
Ctrl+, - Search for specific settings or browse by category
- Settings are stored in JSON format
- Configure settings specific to your current project
- These override user settings
- Stored in
.vscode/settings.jsonin your project folder
- Open with File > Preferences > Keyboard Shortcuts or
Ctrl+K Ctrl+S - Customize any command’s keyboard shortcut
- Import keymaps from other editors
Next Steps
Congratulations! You’ve successfully set up VS Code and created your first program. Here’s what to explore next:Master the Interface
Learn about the Activity Bar, Side Bar, Editor Groups, and Panels to maximize your productivity.
Install Extensions
Enhance VS Code with extensions for your favorite languages, frameworks, and tools.
Set Up Version Control
VS Code has built-in Git support. Learn how to commit, push, and manage branches.
Debug Your Code
Use VS Code’s powerful debugger to set breakpoints, inspect variables, and step through code.