0

I'm new to React. I created a new project in React in cmd. I'm in the project folder inside the cmd. And I want to open the project itself through visual studio, I want to do it through cmd - how can I do that? I tried to write "c" when I'm in the project's folder in cmd - it's not working. I know to register c - works on mac - I use window - I do not know how to do it.

2
  • 4
    Try with code . Commented Oct 18, 2020 at 8:50
  • This question is similar to: Opening Microsoft Visual Studio Code from command prompt Windows. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Jul 18, 2024 at 11:32

2 Answers 2

3

This isn't React problem. If you want to open VS Code in the current directory, just type code . in the command prompt.

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

1 Comment

For more options of VS Code command line interface, you can check out the official documentation here: code.visualstudio.com/docs/editor/command-line
0

Just go to the project directory through the command prompt and then write the command (code .) This command will open the project in the visual studio code for you .

Comments

Your Answer

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