0

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?

3
  • 1
    try cd to your directory and then code . Commented Oct 23, 2018 at 9:28
  • 1
    Great @Louis, I tried many options but not this one, Thanks! Commented Oct 23, 2018 at 9:31
  • You're welcome ! Commented Oct 23, 2018 at 9:32

2 Answers 2

1

cd to your directory and then code .

Sign up to request clarification or add additional context in comments.

1 Comment

Better to launch code.cmd (instead of just "code", which launches code.exe). see stackoverflow.com/questions/56134836/…
1
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 .

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.