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?
open a specified path in cmd in windows
Asked Answered
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.
Solution for Windows users
- Add to path system Environment variables the VS code folder "C:\Users\username\AppData\Local\Programs\Microsoft VS Code"
- Type "code ." in address bar of desired folder path of file explorer
- VS code opens in that location
You can try this in windows:
- go to the folder which you want open vscode in that.
- in the address bar, type "
cmd
" then press Enter. - in the cmd, type "
code .
" then press Enter.
Then, the vscode will open, while that folder will be opened by the vscode.
I have better solution, no need for extra config or typing in different windows. Just type in Address Bar:
code.cmd .
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.