How to Open Visual Studio Code Using Terminal (original) (raw)

Last Updated : 5 Dec, 2025

Launching VS Code directly from your terminal speeds up your workflow, reduces clicks, and makes navigation between projects seamless. Once the code command is added to your system PATH, you can open files, folders, or entire projects instantly.

Why Opening VS Code From Terminal Helps:

Step 1: Add VS Code to Your System PATH

You only need to do this once.

How-to-Open-VS-Code-Using-Terminal

Done! You can now launch VS Code from any terminal using the code command.

**Note: Install VS Code first if you haven’t already ****(**Windows, Mac or Ubuntu)

Step 2: Open VS Code From the Terminal

Open the Terminal

**Use the following commands to open VS Code.

**code .

**code [path-to-file-or-folder]

code -n

**Check out: How to Create a File in VSCode using Terminal?

For more such commands, get help using the following command. It displays VS Code command-line options and descriptions.

**code --help

code---help-command

**Read also: