Skip to content

Open Any Folder in VS Code Straight from Windows Explorer

One line in Explorer's address bar opens the current folder in VS Code. Here's the trick, plus what else `cmd /k` can do.

Ritwick Halder1 min read

Note: this post was written in 2019. Prices, links and details may have changed since.

To open a certain project you often do the following :- Locate VS Code shortcut and open it, then click on open project and then navigate to the project folder and then open it.

What if I told you there’s a shortcut which I discovered a while ago and I’ve been using it ever since. Just navigate to project folder and in the address bar type this

shell
cmd /k code .

#Tip : you can also press Ctrl + L to highlight the address bar and start typing (also works in chrome)

#TIP : You can also run any command using "cmd /k" in the address bar. I use this extensively to store shortcuts in desktop and run commands easily. I hope you find this tip useful 🙂