How to open file always in a new window by VSCode?











up vote
0
down vote

favorite
1












(Using MacOS Mojave, VSCode 1.28.2)



I'm using VSCode in text editing(like .js, .txt, .csv,...).



When I double click and open a file in Finder or Desktop(or "Open in VSCode"), and if I'm opening another workspace, it opens the file in the same window as the workspace I'm already opening.



How to make VSCode to always open files in a new window?



example










share|improve this question


























    up vote
    0
    down vote

    favorite
    1












    (Using MacOS Mojave, VSCode 1.28.2)



    I'm using VSCode in text editing(like .js, .txt, .csv,...).



    When I double click and open a file in Finder or Desktop(or "Open in VSCode"), and if I'm opening another workspace, it opens the file in the same window as the workspace I'm already opening.



    How to make VSCode to always open files in a new window?



    example










    share|improve this question
























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      (Using MacOS Mojave, VSCode 1.28.2)



      I'm using VSCode in text editing(like .js, .txt, .csv,...).



      When I double click and open a file in Finder or Desktop(or "Open in VSCode"), and if I'm opening another workspace, it opens the file in the same window as the workspace I'm already opening.



      How to make VSCode to always open files in a new window?



      example










      share|improve this question













      (Using MacOS Mojave, VSCode 1.28.2)



      I'm using VSCode in text editing(like .js, .txt, .csv,...).



      When I double click and open a file in Finder or Desktop(or "Open in VSCode"), and if I'm opening another workspace, it opens the file in the same window as the workspace I'm already opening.



      How to make VSCode to always open files in a new window?



      example







      macos visual-studio-code






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 9:08









      Taichi

      1599




      1599
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Set "window.openFilesInNewWindow": "on" in settings.json.



          Click on the gear icon on the bottom-left corner of the window, select Settings then enter window.openFilesInNewWindow in the search box that appears on the top of the Settings tab to find the setting quickly. Click on it and select "on" from the dropdown list.



          It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json file):




          Files will open in a new window.







          share|improve this answer




























            up vote
            0
            down vote













            You can try opening the following:



            Open the Command pallet using Ctrl+Shift+p
            Open user settings(which is a JSON)
            Add a new property
            "workbench.editor.enablePreview": false


            and save it






            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',
              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%2f53186356%2fhow-to-open-file-always-in-a-new-window-by-vscode%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              Set "window.openFilesInNewWindow": "on" in settings.json.



              Click on the gear icon on the bottom-left corner of the window, select Settings then enter window.openFilesInNewWindow in the search box that appears on the top of the Settings tab to find the setting quickly. Click on it and select "on" from the dropdown list.



              It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json file):




              Files will open in a new window.







              share|improve this answer

























                up vote
                1
                down vote



                accepted










                Set "window.openFilesInNewWindow": "on" in settings.json.



                Click on the gear icon on the bottom-left corner of the window, select Settings then enter window.openFilesInNewWindow in the search box that appears on the top of the Settings tab to find the setting quickly. Click on it and select "on" from the dropdown list.



                It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json file):




                Files will open in a new window.







                share|improve this answer























                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  Set "window.openFilesInNewWindow": "on" in settings.json.



                  Click on the gear icon on the bottom-left corner of the window, select Settings then enter window.openFilesInNewWindow in the search box that appears on the top of the Settings tab to find the setting quickly. Click on it and select "on" from the dropdown list.



                  It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json file):




                  Files will open in a new window.







                  share|improve this answer












                  Set "window.openFilesInNewWindow": "on" in settings.json.



                  Click on the gear icon on the bottom-left corner of the window, select Settings then enter window.openFilesInNewWindow in the search box that appears on the top of the Settings tab to find the setting quickly. Click on it and select "on" from the dropdown list.



                  It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json file):




                  Files will open in a new window.








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 7 at 9:24









                  axiac

                  42.1k64262




                  42.1k64262
























                      up vote
                      0
                      down vote













                      You can try opening the following:



                      Open the Command pallet using Ctrl+Shift+p
                      Open user settings(which is a JSON)
                      Add a new property
                      "workbench.editor.enablePreview": false


                      and save it






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        You can try opening the following:



                        Open the Command pallet using Ctrl+Shift+p
                        Open user settings(which is a JSON)
                        Add a new property
                        "workbench.editor.enablePreview": false


                        and save it






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          You can try opening the following:



                          Open the Command pallet using Ctrl+Shift+p
                          Open user settings(which is a JSON)
                          Add a new property
                          "workbench.editor.enablePreview": false


                          and save it






                          share|improve this answer












                          You can try opening the following:



                          Open the Command pallet using Ctrl+Shift+p
                          Open user settings(which is a JSON)
                          Add a new property
                          "workbench.editor.enablePreview": false


                          and save it







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 7 at 9:22









                          Debabrata

                          4618




                          4618






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186356%2fhow-to-open-file-always-in-a-new-window-by-vscode%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