'open a specified path in cmd in windows

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?



Solution 1:[1]

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

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kasra Najafi
Solution 2