How does one open multiple instances of Visual Studio Code












225















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?










share|improve this question





























    225















    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?










    share|improve this question



























      225












      225








      225


      31






      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 1 '15 at 12:25









      jessehouwing

      68.6k10165241




      68.6k10165241










      asked Apr 30 '15 at 10:06









      Binary WorrierBinary Worrier

      40k14122168




      40k14122168
























          13 Answers
          13






          active

          oldest

          votes


















          429














          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






          share|improve this answer





















          • 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



















          72














          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:
          Visual Studio Code Shortcut






          share|improve this answer





















          • 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



















          11














          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






          share|improve this answer



















          • 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



















          10














          Select File -> New Window from the menu and then open the other folder in the new window.






          share|improve this answer


























          • 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



















          4














          You can also create a shortcut with an empty filename



          "%LOCALAPPDATA%LocalCodeCode.exe" ""





          share|improve this answer































            3














            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 -



            enter image description here






            share|improve this answer



















            • 5





              Why not just code -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



















            3














            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.






            share|improve this answer































              1














              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.






              share|improve this answer































                1














                If you have all your JS files in multiple folders under one folder that works out very well, that's what i did: enter image description here






                share|improve this answer































                  1














                  To open a new instance with your project loaded from terminal, just type code <directory-path>






                  share|improve this answer































                    1














                    In Linux [Tested with Ubuntu & Kali] you can also right click the tile on the dock and select new window.






                    share|improve this answer































                      1














                      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.






                      share|improve this answer































                        1














                        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.






                        share|improve this answer























                          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
                          });


                          }
                          });














                          draft saved

                          draft discarded


















                          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









                          429














                          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






                          share|improve this answer





















                          • 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
















                          429














                          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






                          share|improve this answer





















                          • 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














                          429












                          429








                          429







                          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






                          share|improve this answer















                          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







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          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














                          • 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













                          72














                          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:
                          Visual Studio Code Shortcut






                          share|improve this answer





















                          • 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
















                          72














                          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:
                          Visual Studio Code Shortcut






                          share|improve this answer





















                          • 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














                          72












                          72








                          72







                          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:
                          Visual Studio Code Shortcut






                          share|improve this answer















                          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:
                          Visual Studio Code Shortcut







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          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














                          • 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











                          11














                          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






                          share|improve this answer



















                          • 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
















                          11














                          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






                          share|improve this answer



















                          • 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














                          11












                          11








                          11







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          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














                          • 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











                          10














                          Select File -> New Window from the menu and then open the other folder in the new window.






                          share|improve this answer


























                          • 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
















                          10














                          Select File -> New Window from the menu and then open the other folder in the new window.






                          share|improve this answer


























                          • 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














                          10












                          10








                          10







                          Select File -> New Window from the menu and then open the other folder in the new window.






                          share|improve this answer















                          Select File -> New Window from the menu and then open the other folder in the new window.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          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



















                          • 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











                          4














                          You can also create a shortcut with an empty filename



                          "%LOCALAPPDATA%LocalCodeCode.exe" ""





                          share|improve this answer




























                            4














                            You can also create a shortcut with an empty filename



                            "%LOCALAPPDATA%LocalCodeCode.exe" ""





                            share|improve this answer


























                              4












                              4








                              4







                              You can also create a shortcut with an empty filename



                              "%LOCALAPPDATA%LocalCodeCode.exe" ""





                              share|improve this answer













                              You can also create a shortcut with an empty filename



                              "%LOCALAPPDATA%LocalCodeCode.exe" ""






                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Sep 3 '15 at 12:16









                              Todd SmithTodd Smith

                              12k114874




                              12k114874























                                  3














                                  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 -



                                  enter image description here






                                  share|improve this answer



















                                  • 5





                                    Why not just code -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
















                                  3














                                  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 -



                                  enter image description here






                                  share|improve this answer



















                                  • 5





                                    Why not just code -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














                                  3












                                  3








                                  3







                                  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 -



                                  enter image description here






                                  share|improve this answer













                                  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 -



                                  enter image description here







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Nov 26 '16 at 7:29









                                  RBTRBT

                                  9,085672101




                                  9,085672101








                                  • 5





                                    Why not just code -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





                                    Why not just code -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











                                  3














                                  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.






                                  share|improve this answer




























                                    3














                                    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.






                                    share|improve this answer


























                                      3












                                      3








                                      3







                                      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.






                                      share|improve this answer













                                      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.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered May 9 '18 at 14:04









                                      orangesherbertorangesherbert

                                      3,70132853




                                      3,70132853























                                          1














                                          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.






                                          share|improve this answer




























                                            1














                                            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.






                                            share|improve this answer


























                                              1












                                              1








                                              1







                                              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.






                                              share|improve this answer













                                              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.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Oct 15 '15 at 13:32









                                              Benjamin PaseroBenjamin Pasero

                                              43.2k96144




                                              43.2k96144























                                                  1














                                                  If you have all your JS files in multiple folders under one folder that works out very well, that's what i did: enter image description here






                                                  share|improve this answer




























                                                    1














                                                    If you have all your JS files in multiple folders under one folder that works out very well, that's what i did: enter image description here






                                                    share|improve this answer


























                                                      1












                                                      1








                                                      1







                                                      If you have all your JS files in multiple folders under one folder that works out very well, that's what i did: enter image description here






                                                      share|improve this answer













                                                      If you have all your JS files in multiple folders under one folder that works out very well, that's what i did: enter image description here







                                                      share|improve this answer












                                                      share|improve this answer



                                                      share|improve this answer










                                                      answered Oct 21 '15 at 12:51









                                                      Kai CriticallyAcclaimed CooperKai CriticallyAcclaimed Cooper

                                                      4922825




                                                      4922825























                                                          1














                                                          To open a new instance with your project loaded from terminal, just type code <directory-path>






                                                          share|improve this answer




























                                                            1














                                                            To open a new instance with your project loaded from terminal, just type code <directory-path>






                                                            share|improve this answer


























                                                              1












                                                              1








                                                              1







                                                              To open a new instance with your project loaded from terminal, just type code <directory-path>






                                                              share|improve this answer













                                                              To open a new instance with your project loaded from terminal, just type code <directory-path>







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Feb 1 '17 at 1:19









                                                              nltnlt

                                                              525711




                                                              525711























                                                                  1














                                                                  In Linux [Tested with Ubuntu & Kali] you can also right click the tile on the dock and select new window.






                                                                  share|improve this answer




























                                                                    1














                                                                    In Linux [Tested with Ubuntu & Kali] you can also right click the tile on the dock and select new window.






                                                                    share|improve this answer


























                                                                      1












                                                                      1








                                                                      1







                                                                      In Linux [Tested with Ubuntu & Kali] you can also right click the tile on the dock and select new window.






                                                                      share|improve this answer













                                                                      In Linux [Tested with Ubuntu & Kali] you can also right click the tile on the dock and select new window.







                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Jul 31 '18 at 14:01









                                                                      0siris0siris

                                                                      1851112




                                                                      1851112























                                                                          1














                                                                          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.






                                                                          share|improve this answer




























                                                                            1














                                                                            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.






                                                                            share|improve this answer


























                                                                              1












                                                                              1








                                                                              1







                                                                              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.






                                                                              share|improve this answer













                                                                              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.







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Sep 30 '18 at 12:07









                                                                              please delete meplease delete me

                                                                              1112




                                                                              1112























                                                                                  1














                                                                                  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.






                                                                                  share|improve this answer




























                                                                                    1














                                                                                    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.






                                                                                    share|improve this answer


























                                                                                      1












                                                                                      1








                                                                                      1







                                                                                      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.






                                                                                      share|improve this answer













                                                                                      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.







                                                                                      share|improve this answer












                                                                                      share|improve this answer



                                                                                      share|improve this answer










                                                                                      answered Oct 8 '18 at 22:27









                                                                                      Rich ArmstrongRich Armstrong

                                                                                      512




                                                                                      512






























                                                                                          draft saved

                                                                                          draft discarded




















































                                                                                          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.




                                                                                          draft saved


                                                                                          draft discarded














                                                                                          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





















































                                                                                          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







                                                                                          這個網誌中的熱門文章

                                                                                          Tangent Lines Diagram Along Smooth Curve

                                                                                          Yusuf al-Mu'taman ibn Hud

                                                                                          Zucchini