How does one open multiple instances of Visual Studio Code
Today MS released the Visual Studio Code file/folder editor.
The first limitation is it appears to be a single instance application. Is there any way of getting multiple instances, or otherwise having it open multiple folders simultaneously?
visual-studio-code
add a comment |
Today MS released the Visual Studio Code file/folder editor.
The first limitation is it appears to be a single instance application. Is there any way of getting multiple instances, or otherwise having it open multiple folders simultaneously?
visual-studio-code
add a comment |
Today MS released the Visual Studio Code file/folder editor.
The first limitation is it appears to be a single instance application. Is there any way of getting multiple instances, or otherwise having it open multiple folders simultaneously?
visual-studio-code
Today MS released the Visual Studio Code file/folder editor.
The first limitation is it appears to be a single instance application. Is there any way of getting multiple instances, or otherwise having it open multiple folders simultaneously?
visual-studio-code
visual-studio-code
edited May 1 '15 at 12:25
jessehouwing
68.6k10165241
68.6k10165241
asked Apr 30 '15 at 10:06
Binary WorrierBinary Worrier
40k14122168
40k14122168
add a comment |
add a comment |
13 Answers
13
active
oldest
votes
Ctrl + Shift + N will open a new window, while Ctrl+K then release the keys and press O would open the current tab in a new window. You can then use File > Open Folder to have two instances of Visual Studio Code with different folders in each window.
⌘ + Shift + N and ⌘ + K for Mac.
List of helpful keyboard shortcuts can be found here
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
add a comment |
Use
code -n
when launching the program. This "Opens a new session of VS Code instead of restoring the previous session." (from here)
The way I used this was by modifying my "Code" shortcut to include the -n
parameter:
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
add a comment |
If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this github issue if you want to see it implemented. https://github.com/Microsoft/vscode/issues/2686
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
add a comment |
Select File -> New Window from the menu and then open the other folder in the new window.
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
add a comment |
You can also create a shortcut with an empty filename
"%LOCALAPPDATA%LocalCodeCode.exe" ""
add a comment |
I like opening Visual Studio Code from run prompt/dialog instead. Sweet and simple cmd /c code -n
. Since run dialog also maintains your command history on a per user basis so it is very convenient. One click and go -
5
Why not justcode -n
from the Run window?
– Matt Klein
Dec 2 '16 at 6:53
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add a comment |
Multiple instances of the same project
WORKAROUND
You cannot open multiple instances of the same folder but a workaround I have found is to open different folders.
lib
-components
-models
-helpers
tests
So, here I might open components, models and tests in different windows and then I can view them on my three monitors.
It sounds a bit simple but this has helped me a lot.
add a comment |
Starting with our 0.9.0 release, we added a new setting window.reopenFolders
to control if VS Code should restore all folders of the previous session. By default only the last active window you worked on will be restored but if you change this setting to all
, VS Code will reopen all folders in their windows automatically.
add a comment |
If you have all your JS files in multiple folders under one folder that works out very well, that's what i did:
add a comment |
To open a new instance with your project loaded from terminal, just type code <directory-path>
add a comment |
In Linux [Tested with Ubuntu & Kali] you can also right click
the tile on the dock and select new window
.
add a comment |
You can open multiple windows (from the menu or by running the code
executable again).
However, unfortunately there seems to be no way to actually have separate instances a the moment. For example, if you have two shells open with different environments in each (different paths etc.), launching code
for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.
add a comment |
Multiple VS Code windows can be opened on the same effective folder if each opens the folder through a different path. For example, on Windows, a project in C:GitMyProject could be open in one instance of VS Code, while MyPCc$GitMyProject is open in another instance. If the admin share (c$) isn't available or suitable, an explicit share can be constructed that provides the necessary access.
No, this isn't an ideal solution.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29964825%2fhow-does-one-open-multiple-instances-of-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
13 Answers
13
active
oldest
votes
13 Answers
13
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ctrl + Shift + N will open a new window, while Ctrl+K then release the keys and press O would open the current tab in a new window. You can then use File > Open Folder to have two instances of Visual Studio Code with different folders in each window.
⌘ + Shift + N and ⌘ + K for Mac.
List of helpful keyboard shortcuts can be found here
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
add a comment |
Ctrl + Shift + N will open a new window, while Ctrl+K then release the keys and press O would open the current tab in a new window. You can then use File > Open Folder to have two instances of Visual Studio Code with different folders in each window.
⌘ + Shift + N and ⌘ + K for Mac.
List of helpful keyboard shortcuts can be found here
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
add a comment |
Ctrl + Shift + N will open a new window, while Ctrl+K then release the keys and press O would open the current tab in a new window. You can then use File > Open Folder to have two instances of Visual Studio Code with different folders in each window.
⌘ + Shift + N and ⌘ + K for Mac.
List of helpful keyboard shortcuts can be found here
Ctrl + Shift + N will open a new window, while Ctrl+K then release the keys and press O would open the current tab in a new window. You can then use File > Open Folder to have two instances of Visual Studio Code with different folders in each window.
⌘ + Shift + N and ⌘ + K for Mac.
List of helpful keyboard shortcuts can be found here
edited Jan 4 at 23:39
Braiam
3,58793564
3,58793564
answered Apr 30 '15 at 10:15
Blake MumfordBlake Mumford
11.3k83861
11.3k83861
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
add a comment |
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
15
15
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
hmm... doesn't seem to let you open two instances to the same folder.
– Damien Sawyer
May 29 '17 at 4:43
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
why can't you just click "Open in New Window" lol, this is not perfect lol
– Alexander Mills
Sep 11 '18 at 22:23
add a comment |
Use
code -n
when launching the program. This "Opens a new session of VS Code instead of restoring the previous session." (from here)
The way I used this was by modifying my "Code" shortcut to include the -n
parameter:
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
add a comment |
Use
code -n
when launching the program. This "Opens a new session of VS Code instead of restoring the previous session." (from here)
The way I used this was by modifying my "Code" shortcut to include the -n
parameter:
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
add a comment |
Use
code -n
when launching the program. This "Opens a new session of VS Code instead of restoring the previous session." (from here)
The way I used this was by modifying my "Code" shortcut to include the -n
parameter:
Use
code -n
when launching the program. This "Opens a new session of VS Code instead of restoring the previous session." (from here)
The way I used this was by modifying my "Code" shortcut to include the -n
parameter:
edited Nov 21 '18 at 5:25
answered Mar 5 '16 at 1:31
Matt KleinMatt Klein
3,65532633
3,65532633
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
add a comment |
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
4
4
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
This is the correct answer. Works on Linux as well. Thank you.
– astreltsov
Apr 15 '16 at 3:36
On MacOS this just opens the same session. this did it for me:
while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
On MacOS this just opens the same session. this did it for me:
while Ctrl+K then release the keys and press O would open the current tab in a new window
– RudyOnRails
Feb 6 at 15:50
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
Awesome ! Solve my problem !
– linrongbin
Feb 20 at 3:41
add a comment |
If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this github issue if you want to see it implemented. https://github.com/Microsoft/vscode/issues/2686
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
add a comment |
If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this github issue if you want to see it implemented. https://github.com/Microsoft/vscode/issues/2686
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
add a comment |
If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this github issue if you want to see it implemented. https://github.com/Microsoft/vscode/issues/2686
If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this github issue if you want to see it implemented. https://github.com/Microsoft/vscode/issues/2686
answered Apr 20 '17 at 19:58
Ryan WallsRyan Walls
5,92812739
5,92812739
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
add a comment |
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
1
1
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
If you want to drag tabs off into their own floating windows, watch and upvote this github issue: github.com/Microsoft/vscode/issues/10121
– Roy Tinker
Feb 1 '18 at 19:31
1
1
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
Dragging a tab into a fresh instance of VS Code works. I really wish they would fix this, it would be nice to be able to use VS Code across multiple monitors.
– JMK
Jul 7 '18 at 13:32
add a comment |
Select File -> New Window from the menu and then open the other folder in the new window.
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
add a comment |
Select File -> New Window from the menu and then open the other folder in the new window.
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
add a comment |
Select File -> New Window from the menu and then open the other folder in the new window.
Select File -> New Window from the menu and then open the other folder in the new window.
edited May 16 '17 at 11:47
answered May 16 '17 at 11:47
lex82lex82
7,98822948
7,98822948
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
add a comment |
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
Yes! This exists now!
– Binary Worrier
May 16 '17 at 11:47
1
1
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
I suspected it was missing in earlier versions. But anyway, I didn't see it at first and came here for a solution.
– lex82
May 16 '17 at 11:48
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
Why in the hell can't one just run the application twice when it supports multiple windows anyway??? Right-click the icon on the taskbar, choose 'Visual Studio Code', and it just takes you back to the existing single window. Doesn't make sense.
– Chris Peacock
Jan 9 '18 at 17:49
add a comment |
You can also create a shortcut with an empty filename
"%LOCALAPPDATA%LocalCodeCode.exe" ""
add a comment |
You can also create a shortcut with an empty filename
"%LOCALAPPDATA%LocalCodeCode.exe" ""
add a comment |
You can also create a shortcut with an empty filename
"%LOCALAPPDATA%LocalCodeCode.exe" ""
You can also create a shortcut with an empty filename
"%LOCALAPPDATA%LocalCodeCode.exe" ""
answered Sep 3 '15 at 12:16
Todd SmithTodd Smith
12k114874
12k114874
add a comment |
add a comment |
I like opening Visual Studio Code from run prompt/dialog instead. Sweet and simple cmd /c code -n
. Since run dialog also maintains your command history on a per user basis so it is very convenient. One click and go -
5
Why not justcode -n
from the Run window?
– Matt Klein
Dec 2 '16 at 6:53
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add a comment |
I like opening Visual Studio Code from run prompt/dialog instead. Sweet and simple cmd /c code -n
. Since run dialog also maintains your command history on a per user basis so it is very convenient. One click and go -
5
Why not justcode -n
from the Run window?
– Matt Klein
Dec 2 '16 at 6:53
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add a comment |
I like opening Visual Studio Code from run prompt/dialog instead. Sweet and simple cmd /c code -n
. Since run dialog also maintains your command history on a per user basis so it is very convenient. One click and go -
I like opening Visual Studio Code from run prompt/dialog instead. Sweet and simple cmd /c code -n
. Since run dialog also maintains your command history on a per user basis so it is very convenient. One click and go -
answered Nov 26 '16 at 7:29
RBTRBT
9,085672101
9,085672101
5
Why not justcode -n
from the Run window?
– Matt Klein
Dec 2 '16 at 6:53
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add a comment |
5
Why not justcode -n
from the Run window?
– Matt Klein
Dec 2 '16 at 6:53
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
5
5
Why not just
code -n
from the Run window?– Matt Klein
Dec 2 '16 at 6:53
Why not just
code -n
from the Run window?– Matt Klein
Dec 2 '16 at 6:53
1
1
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add that command to a shortcut that you can add to your desktop and/or TaskBar. Giving you a +1 for this ;-)
– Tahir Khalid
Jan 21 '17 at 9:39
add a comment |
Multiple instances of the same project
WORKAROUND
You cannot open multiple instances of the same folder but a workaround I have found is to open different folders.
lib
-components
-models
-helpers
tests
So, here I might open components, models and tests in different windows and then I can view them on my three monitors.
It sounds a bit simple but this has helped me a lot.
add a comment |
Multiple instances of the same project
WORKAROUND
You cannot open multiple instances of the same folder but a workaround I have found is to open different folders.
lib
-components
-models
-helpers
tests
So, here I might open components, models and tests in different windows and then I can view them on my three monitors.
It sounds a bit simple but this has helped me a lot.
add a comment |
Multiple instances of the same project
WORKAROUND
You cannot open multiple instances of the same folder but a workaround I have found is to open different folders.
lib
-components
-models
-helpers
tests
So, here I might open components, models and tests in different windows and then I can view them on my three monitors.
It sounds a bit simple but this has helped me a lot.
Multiple instances of the same project
WORKAROUND
You cannot open multiple instances of the same folder but a workaround I have found is to open different folders.
lib
-components
-models
-helpers
tests
So, here I might open components, models and tests in different windows and then I can view them on my three monitors.
It sounds a bit simple but this has helped me a lot.
answered May 9 '18 at 14:04
orangesherbertorangesherbert
3,70132853
3,70132853
add a comment |
add a comment |
Starting with our 0.9.0 release, we added a new setting window.reopenFolders
to control if VS Code should restore all folders of the previous session. By default only the last active window you worked on will be restored but if you change this setting to all
, VS Code will reopen all folders in their windows automatically.
add a comment |
Starting with our 0.9.0 release, we added a new setting window.reopenFolders
to control if VS Code should restore all folders of the previous session. By default only the last active window you worked on will be restored but if you change this setting to all
, VS Code will reopen all folders in their windows automatically.
add a comment |
Starting with our 0.9.0 release, we added a new setting window.reopenFolders
to control if VS Code should restore all folders of the previous session. By default only the last active window you worked on will be restored but if you change this setting to all
, VS Code will reopen all folders in their windows automatically.
Starting with our 0.9.0 release, we added a new setting window.reopenFolders
to control if VS Code should restore all folders of the previous session. By default only the last active window you worked on will be restored but if you change this setting to all
, VS Code will reopen all folders in their windows automatically.
answered Oct 15 '15 at 13:32
Benjamin PaseroBenjamin Pasero
43.2k96144
43.2k96144
add a comment |
add a comment |
If you have all your JS files in multiple folders under one folder that works out very well, that's what i did:
add a comment |
If you have all your JS files in multiple folders under one folder that works out very well, that's what i did:
add a comment |
If you have all your JS files in multiple folders under one folder that works out very well, that's what i did:
If you have all your JS files in multiple folders under one folder that works out very well, that's what i did:
answered Oct 21 '15 at 12:51
Kai CriticallyAcclaimed CooperKai CriticallyAcclaimed Cooper
4922825
4922825
add a comment |
add a comment |
To open a new instance with your project loaded from terminal, just type code <directory-path>
add a comment |
To open a new instance with your project loaded from terminal, just type code <directory-path>
add a comment |
To open a new instance with your project loaded from terminal, just type code <directory-path>
To open a new instance with your project loaded from terminal, just type code <directory-path>
answered Feb 1 '17 at 1:19
nltnlt
525711
525711
add a comment |
add a comment |
In Linux [Tested with Ubuntu & Kali] you can also right click
the tile on the dock and select new window
.
add a comment |
In Linux [Tested with Ubuntu & Kali] you can also right click
the tile on the dock and select new window
.
add a comment |
In Linux [Tested with Ubuntu & Kali] you can also right click
the tile on the dock and select new window
.
In Linux [Tested with Ubuntu & Kali] you can also right click
the tile on the dock and select new window
.
answered Jul 31 '18 at 14:01
0siris0siris
1851112
1851112
add a comment |
add a comment |
You can open multiple windows (from the menu or by running the code
executable again).
However, unfortunately there seems to be no way to actually have separate instances a the moment. For example, if you have two shells open with different environments in each (different paths etc.), launching code
for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.
add a comment |
You can open multiple windows (from the menu or by running the code
executable again).
However, unfortunately there seems to be no way to actually have separate instances a the moment. For example, if you have two shells open with different environments in each (different paths etc.), launching code
for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.
add a comment |
You can open multiple windows (from the menu or by running the code
executable again).
However, unfortunately there seems to be no way to actually have separate instances a the moment. For example, if you have two shells open with different environments in each (different paths etc.), launching code
for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.
You can open multiple windows (from the menu or by running the code
executable again).
However, unfortunately there seems to be no way to actually have separate instances a the moment. For example, if you have two shells open with different environments in each (different paths etc.), launching code
for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.
answered Sep 30 '18 at 12:07
please delete meplease delete me
1112
1112
add a comment |
add a comment |
Multiple VS Code windows can be opened on the same effective folder if each opens the folder through a different path. For example, on Windows, a project in C:GitMyProject could be open in one instance of VS Code, while MyPCc$GitMyProject is open in another instance. If the admin share (c$) isn't available or suitable, an explicit share can be constructed that provides the necessary access.
No, this isn't an ideal solution.
add a comment |
Multiple VS Code windows can be opened on the same effective folder if each opens the folder through a different path. For example, on Windows, a project in C:GitMyProject could be open in one instance of VS Code, while MyPCc$GitMyProject is open in another instance. If the admin share (c$) isn't available or suitable, an explicit share can be constructed that provides the necessary access.
No, this isn't an ideal solution.
add a comment |
Multiple VS Code windows can be opened on the same effective folder if each opens the folder through a different path. For example, on Windows, a project in C:GitMyProject could be open in one instance of VS Code, while MyPCc$GitMyProject is open in another instance. If the admin share (c$) isn't available or suitable, an explicit share can be constructed that provides the necessary access.
No, this isn't an ideal solution.
Multiple VS Code windows can be opened on the same effective folder if each opens the folder through a different path. For example, on Windows, a project in C:GitMyProject could be open in one instance of VS Code, while MyPCc$GitMyProject is open in another instance. If the admin share (c$) isn't available or suitable, an explicit share can be constructed that provides the necessary access.
No, this isn't an ideal solution.
answered Oct 8 '18 at 22:27
Rich ArmstrongRich Armstrong
512
512
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29964825%2fhow-does-one-open-multiple-instances-of-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown