The Visual Studio Code command | visual studio code extension path
VisualStudioCodehasapowerfulcommandlineinterfacebuilt-inthatletsyoucontrolhowyoulaunchtheeditor.Youcanopenfiles,installextensions,changethedisplaylanguage,andoutputdiagnosticsthroughcommand-lineoptions(switches).Ifyouarelookingforhowtoruncommand-linetoolsinsideVSCode,seetheIntegratedTerminal[1].CommandlinehelpTogetanoverviewoftheVSCodecommandlineinterface,openaterminalorcommandpromptandtypecode--help.Youwillseetheversion,usageexample,andlistofcommandlineoptions.LaunchingfromcommandlineYoucan...
Visual Studio Code has a powerful command line interface built-in that lets you control how you launch the editor. You can open files, install extensions, change the display language, and output diagnostics through command-line options (switches).
If you are looking for how to run command-line tools inside VS Code, see the Integrated Terminal[1].
Command line helpTo get an overview of the VS Code command line interface, open a terminal or command prompt and type code --help. You will see the version, usage example, and list of command line options.
Launching from command lineYou can launch VS Code from the command line to quickly open a file, folder, or project. Typically, you open VS Code within the context of a folder. To do this, from an open terminal or command prompt, navigate to your project folder and type code .:
Note: Users on macOS must first run a command (Shell Command: Install code command in PATH) to add VS...