简体   繁体   中英

Open Visual Studio Code from the Command Line in Windows

How open Visual Studio Code from the command line prompt?

For example:

sublime .

This opens Sublime Text with the current path from the Command Line. Is this also possible With Visual Studio Code?

cd到您的目录,然后code .

Users\"yourUser"\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code>code .

So basicly: code .

In my case this works just fine. Going to the directory where VSCode is installed, then opening it by the name of the app.

There is not even need to go to the path. Open console "cmd" and type code .

C:\Users\USER>code .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM