open a specified path in cmd in windows

Viewed 711

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?

2 Answers

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
Related