How to Open Visual Studio Code Using Terminal Last Updated : 05 Dec, 2025 Comments Improve Suggest changes 11 Likes Like Report 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:Faster navigation between projectsQuick file opening without browsing foldersEasier workflow for Git and Node.js developersClean, efficient, keyboard-friendly coding setupStep 1: Add VS Code to Your System PATHYou only need to do this once.Open Visual Studio CodePress Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (macOS)Type “Shell Command”Select Shell Command: Install ‘code’ command in PATHHit EnterDone! 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 Windows: Open Command Prompt or PowerShell macOS: Press Cmd + Space, type Terminal, press EnterUbuntu/Linux: Press Ctrl + Alt + T Use the following commands to open VS Code.Command 1: To open VS code in the current directory.code .Command 2: To open a specific file or folder in VS code.code [path-to-file-or-folder]Command 3: To start a new project in VS code code -nCheck 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 --helpRead also:General Keyboard Shortcuts For Visual Studio Code!How to Open a GitHub Repository in VS Code Online?How to Enable Live Server on Visual Studio Code? Create Quiz Comment H harshbaidind Follow 11 Improve H harshbaidind Follow 11 Improve Article Tags : TechTips Explore How ToHow to Recover Deleted Photos from WhatsApp [5 Methods]8 min readHow to Delete Discord Servers: Step by Step Guide7 min readHow to Fix âThis Copy of Windows is Not Genuineâ Error?6 min readHow to Delete Discord Account: A Complete Guide4 min readFlowchart in Google Docs5 min readHow to Password Protect a Google Drive Folder: Comprehensive Guide9 min readHow to Deploy a Replica Set in MongoDB?5 min readMACHow to Find Your Mac Address?5 min readMAC Filtering in Computer Network3 min readHow to validate MAC address using Regular Expression6 min readHow to get the MAC Address â 10 Different Methods â Kali Linux5 min readExtracting MAC address using Python3 min readAI ToolsAI Tools List: 50+ Top Picks5 min read10 Best AI Tools to Boost Productivity in 202514 min readTop 15 AI Testing Tools for Test Automation (2025 Updated)14 min readTop 20 Applications of Artificial Intelligence (AI) in 202513 min readShortcut KeyWindows Keyboard Shortcuts A to Z with PDF (All Windows Versions)11 min readMac Keyboard Shortcuts for All Mac Users (2025 Updated)9 min readTop 20 Excel Shortcuts That You Need To Know6 min readMicrosoft Word Shortcut Keys7 min readMicrosoft Office Keyboard Shortcuts5 min readGeneral Keyboard Shortcuts For Visual Studio Code3 min read Like