Vscode: Enable "code ." to be entered on the Windows 10 Windows Explorer address bar

Created on 8 Feb 2018  路  4Comments  路  Source: microsoft/vscode

Enable "code ." to be entered on the Windows 10 Windows Explorer address bar and have vscode open the currently displayed directory path.

For example, entering "cmd" in the Windows Explorer address bar will open the Command Prompt with its cwd set to Windows Explorer's currently displayed directory path. Why can't vscode work the same way?

Best regards,
Michael Herman (Toronto)

*out-of-scope feature-request windows workbench-os-integration

Most helpful comment

For me, I can open "code ." from address bar by adding new path in system env variable
C:\Program Files\Microsoft VS Code.

It will open vscode for current directory. Make sure the where command display code.exe at the top

$ where code
C:\Program Files\Microsoft VS Code\Code.exe
C:\Program Files\Microsoft VS Code\bin\code
C:\Program Files\Microsoft VS Code\bin\code.cmd

All 4 comments

Bonus request: Entering "code anysubfolder" should open the folder "anysubfolder" in Windows Explorer's currently displayed directory path (if it exists)

For me, I can open "code ." from address bar by adding new path in system env variable
C:\Program Files\Microsoft VS Code.

It will open vscode for current directory. Make sure the where command display code.exe at the top

$ where code
C:\Program Files\Microsoft VS Code\Code.exe
C:\Program Files\Microsoft VS Code\bin\code
C:\Program Files\Microsoft VS Code\bin\code.cmd

Alternatively, you could type code.cmd . instead to open up VS Code in that file directory.
The only backdrop is that it opens an empty cmd shell in the background.
Inferring from the behaviour, I think it is equivalent to opening a cmd in that directory and running code . in it.

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  路  3Comments

sirius1024 picture sirius1024  路  3Comments

chrisdias picture chrisdias  路  3Comments

lukehoban picture lukehoban  路  3Comments

villiv picture villiv  路  3Comments