open a specified path in cmd in windows
Asked Answered
F

4

5

I want to open a specified path in vscode in windows 10 and I know there is a command that do this: path> code . but my problem is, how can I open a specified path in cmd Quickly even from explorer like in ubuntu without type any command?

Flyback answered 30/6, 2020 at 10:12 Comment(0)
S
4

You can do this very simple by type cmd and enter in your windows explorer address bar when you navigated to your specific folder in explorer.

  1. open specific folder
  2. enter cmd
  3. enter vscode
Shanteshantee answered 30/6, 2020 at 10:21 Comment(0)
S
3

Solution for Windows users

  1. Add to path system Environment variables the VS code folder "C:\Users\username\AppData\Local\Programs\Microsoft VS Code"
  2. Type "code ." in address bar of desired folder path of file explorer
  3. VS code opens in that location
Sickener answered 23/4, 2022 at 15:38 Comment(0)
W
1

You can try this in windows:

  1. go to the folder which you want open vscode in that.
  2. in the address bar, type "cmd" then press Enter.
  3. in the cmd, type "code ." then press Enter.

Then, the vscode will open, while that folder will be opened by the vscode.

Wsan answered 22/2, 2023 at 12:48 Comment(0)
M
1

I have better solution, no need for extra config or typing in different windows. Just type in Address Bar:

code.cmd .
Marcellusmarcelo answered 25/8, 2023 at 16:47 Comment(1)
Thank you, this is the only answer that does what the question is asking (opening vscode directly from the url bar).Apocalyptic

© 2022 - 2024 — McMap. All rights reserved.