Languages
[Edit]
EN

Windows - run VS Code in currently open directory from File Explorer

9 points
Created by:
Adnaan-Robin
724

In this article, we would like to show how to run VS Code in currently open directory in File Explorer under Windows.

There are available 2 quick solutions:

  1. in context menu click Open with Code item,
  2. in adress, paste cmd /C code . and press Enter key.

 

Detailed description

1 Open with Code item in context menu

This option is available only if we added the item to context menu during VS Code installation (there is some request to user from installator).

Operation to do: in context menu click Open with Code item

Preview:

Open VS Code in current File Explorer directory under Windows - Example.
Open VS Code in current File Explorer directory under Windows - Example.

2. cmd /C code . command in address

This solution runs cmd in current working directory. cmd has code . command to exacute provided in the agrument.

Command to execute:

cmd /C code .

Preview:

Open VS Code in current File Explorer directory under Windows - Example.
Open VS Code in current File Explorer directory under Windows - Example.

 

Final effect

VS Code open in the current working directory.

VS Code open in the current working directory.
VS Code open in the current working directory.
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

â€ïžđŸ’» 🙂

Join