Installing Visual Studio Code

Feb 19, 2024 9:34:21 PM

What is Visual Studio Code?

Visual Studio Code, or VSCode, is a powerful integrated development environment (IDE) made by Microsoft. It is free and , and it supports a wide range of programming languages. VSCode is available for Windows, macOS, and Linux. VS Code extensions let you add languages, debuggers, and tools to your installation to support your development workflow. It is the most popular IDE and the recommended IDE for development. You can add extensions once you have installed VSCode.

Installation steps

  • Visit https://code.visualstudio.com.
  • Click on the “Download” button.
  • Locate the downloaded file and double-click to begin the installation.
  • Follow the installation instructions and accept the license terms.
  • Verify the installation by launching VS Code from your system’s application launcher or start menu.

Using folders and workspaces in VS Code

Visual Studio Code uses folders to organize your projects. A folder is a directory on your computer. You can open a folder in VS Code to access its files and subfolders. Multiple folders can be added to the VS Code workspace. The workspace is the collection of one or more folders that are opened in VS Code. You can also open a single file in VS Code without opening a folder.

Adding Visual Studio Code to your PATH

Adding VS Code to the system path will allow us to open folders and files from the command line. Doing this will also allow other applications on your computer to launch VS Code.

Steps to add VS Code to the system path

  • Open Visual Studio Code.
  • Go to the “View” menu and select “Command Palette” (or use the keyboard shortcut: Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS).
  • Type “shell command” in the command palette to find the option “Install ‘code’ command in PATH.” and select it.

Now, you can open VS Code from the command line by typing code in the terminal.