2

If I type Ctrl+K Ctrl+O (Open Folder) the current opened folder was closed before opening the new.

What I can to to have both opened?

  • According to Atom.io Blog you could try Ctrl+Alt+O. – Seth May 19 '17 at 17:39
  • 1
    I just experienced this exact situation earlier this morning. – music2myear May 19 '17 at 17:54
  • @Seth this is not Atom.io. Visual Studio Code is a lighweight code editor that is part of Visual Studio. Also, I tried CTRL-K, CTRL-ALT-O and just CTRL-ALT-O and the status bar informs me these are not valid commands. – music2myear May 19 '17 at 17:55
  • Which is originally based on Atom if I'm not mistaken. Hence it would be worth a try whenever it works. But you're right that it seems to be based on Electron now (a continuation of the atom framework?). So it might not work. – Seth May 19 '17 at 18:01
  • It doesn't. See my answer. – music2myear May 19 '17 at 18:03
3

This has been reported as an open request in Github since November 2015: https://github.com/Microsoft/vscode/issues/396

It is still listed as open, indicating they do not consider in impossible, but it is not yet developer or implemented.

Further, this question has been asked on our sister site Stack Overflow:

https://stackoverflow.com/questions/30234146/open-multiple-folders-in-visual-studio-code/43308278

So, short answer: It's not currently supported.

Workaround:

Depending how you use your multiple folders, you could use SymLinks to get basically the same functionality.

In your main VS Code folder, open an elevated Command Prompt and enter:

mklink /D C:\VSCode\Folder\Symlink D:\Other\Folder

Or if you're using PowerShell:

CMD /C mklink /D C:\VSCode\Folder\Symlink D:\Other\Folder

As far as VS Code can tell you're still only using a single folder, but you'll be able to access the symlinked folders easily in the Explorer.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.