How do I configure Visual Studio Code to open files always in a new tab?












732















I am using Visual Studio Code 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make Visual Studio Code always open a new tab?










share|improve this question




















  • 7





    See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

    – Mark
    Dec 15 '17 at 22:33






  • 4





    if you double click and open the file form left panel, it will not be replaced by other tabs

    – Shameera Anuranga
    Aug 21 '18 at 14:50
















732















I am using Visual Studio Code 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make Visual Studio Code always open a new tab?










share|improve this question




















  • 7





    See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

    – Mark
    Dec 15 '17 at 22:33






  • 4





    if you double click and open the file form left panel, it will not be replaced by other tabs

    – Shameera Anuranga
    Aug 21 '18 at 14:50














732












732








732


133






I am using Visual Studio Code 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make Visual Studio Code always open a new tab?










share|improve this question
















I am using Visual Studio Code 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make Visual Studio Code always open a new tab?







visual-studio-code






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '18 at 17:52









Peter Mortensen

13.7k1986112




13.7k1986112










asked Aug 2 '16 at 6:43









MBushveldMBushveld

4,84842140




4,84842140








  • 7





    See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

    – Mark
    Dec 15 '17 at 22:33






  • 4





    if you double click and open the file form left panel, it will not be replaced by other tabs

    – Shameera Anuranga
    Aug 21 '18 at 14:50














  • 7





    See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

    – Mark
    Dec 15 '17 at 22:33






  • 4





    if you double click and open the file form left panel, it will not be replaced by other tabs

    – Shameera Anuranga
    Aug 21 '18 at 14:50








7




7





See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

– Mark
Dec 15 '17 at 22:33





See stackoverflow.com/questions/45945820/… Alt-Enter added this functionality as of v1.19 in December 2017.

– Mark
Dec 15 '17 at 22:33




4




4





if you double click and open the file form left panel, it will not be replaced by other tabs

– Shameera Anuranga
Aug 21 '18 at 14:50





if you double click and open the file form left panel, it will not be replaced by other tabs

– Shameera Anuranga
Aug 21 '18 at 14:50












13 Answers
13






active

oldest

votes


















1450














I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you.



When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called "Preview Mode", which allows you to quickly view files.



Preview Mode tabs are not kept open. As soon as you go to open another file from the sidebar, the existing Preview Mode tab (if one exists) is used. You can determine if a tab is in Preview Mode, by looking at its title in the tab bar. If the title is italic, the tab is in preview mode.



To open a file for editing (i.e. don't open in Preview Mode), double-click on the file in the sidebar.



If you want to disable Preview Mode all together, you can do so by setting "workbench.editor.enablePreview": false in your settings file. Also make note of the "workbench.editor.enablePreviewFromQuickOpen" option, in case you're looking to disable this only from quick open menu.



Before you can disable Preview Mode, you'll need to open your Settings File.



Pro Tip: You can use the Command Palette to open your settings file, just enter "Preferences: Open User Settings"!



Once you've opened your settings file (your settings file should be located on the right), add the "workbench.editor.enablePreview" property, and set its value to false.



You can learn more about Visual Studio Code's "Preview Mode", here.






share|improve this answer





















  • 1





    are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

    – YakovL
    Jan 16 at 11:20






  • 2





    I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

    – Leo
    Jan 18 at 10:48













  • can i change double-click to ctrl+click ?

    – mo sean
    Feb 5 at 16:12






  • 1





    worth noting, that you can disable preview mode in the tab, by double-click on it.

    – dimpiax
    Feb 11 at 22:41



















110














If you don't want to disable preview mode you can explicitly tell vscode to keep a specific tab open. As mentioned above a tab heading with italic text is in preview mode.



To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.action.keepEditor






share|improve this answer





















  • 14





    Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

    – rinogo
    Feb 9 '17 at 18:08






  • 48





    You can also double-click the tab.

    – Jarrod Smith
    Feb 20 '17 at 21:19






  • 15





    cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

    – MattLBeck
    Nov 29 '17 at 9:14








  • 2





    I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

    – Mike
    Oct 4 '18 at 3:31











  • Double clicking on the filename in the explorer works as well.

    – Jeremy Belolo
    Feb 24 at 16:14



















76














I came up with the same problem, and open setting.json file, add the following:



"workbench.editor.enablePreview": false





share|improve this answer





















  • 5





    You also want workbench.editor.enablePreviewFromQuickOpen

    – James Moore
    Aug 15 '17 at 22:38






  • 1





    @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

    – jialin wang
    Aug 17 '17 at 6:53






  • 1





    @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

    – Jepzen
    Nov 11 '17 at 9:23



















27














Use workbench.editor.enablePreview: false to disable Preview mode completely.



Use workbench.editor.enablePreviewFromQuickOpen: false to disable Preview mode for the files open from quick open menu.






share|improve this answer































    13














    For anyone who don't want to disabled Preview Mode.



    As I read whole of comments and I found what I preferred that is the shortcut key to pin the opened file from Quick Open/Ctrl+P or that's mean to keep the opened file to the editor, and yes also don't need to switch your hand to the mouse to double-click on files list.



    Thanks to @jontem and @MattLBeck.



    Call save command with Ctrl+S (cmd+s) is the easiest way to reach what I preferred.



    And if you found out you do this to keep opened file to editor quite frequently, yes I preferred you should setting the option "workbench.editor.enablePreview": false or "workbench.editor.enablePreviewFromQuickOpen": false as others mentioned before.






    share|improve this answer

































      12















      ⚡ Actually, VSCode shows you the preview of a file.




      You can disable the preview with this:



      "workbench.editor.enablePreview": false,


      ⬇️ Basically just add these two settings and you're good to go.



      VSCode tip






      share|improve this answer

































        11















        Watch for filename in italic




        Note that, the file name on the tab is formatted in italic if it has been opened in Preview Mode.




        Quickly take a file out of Preview Mode




        To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic.




        Feature or bug?




        I believe Preview Mode is helpful especially when you have limited screen space and need to check many files.






        share|improve this answer





















        • 2





          You can also double-click the file in the file browser / explorer pane.

          – csum
          Jan 23 '18 at 22:44



















        5














        Menu FilePreferencesUser Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false






        share|improve this answer

































          3














          Open in new Tab Solution:




          1. Open the command palette by: Cmd + Shift + K

          2. Open settings file by: Preferences: Open Settings (JSON)

          3. Under user setting, enable Tabs by: "workbench.editor.showTabs": true






          share|improve this answer

































            2














            You can do it via GUI



            enter image description here



            Search for preview



            enter image description here



            uncheck the options Enable Preview and Enable Preview from Quick Open






            share|improve this answer































              2














              As hktang above indicates:



              one Click opens the file in preview mode (header text in italics)



              Double click the same file, it goes out of preview-mode (header text changes from italic to normal font)



              I think this is a "comprimise" feature allowing users, to "navigate" both worlds; preview and none-preview.




              • All you do is click the file to open it in the right panel.

              • Then immediately double click it to keep it there.

              • Or - just treble click. File opens in none preview mode.


              HTH
              Paul S.






              share|improve this answer

































                1














                This is so confusing. All developers I asked didn't appreciate this default behavior.



                I use cmd + P to open project files.






                share|improve this answer































                  0














                  In my case, I also had to set workbench.editor.showTabs property to true (in addition to workbench.editor.enablePreview)



                  I'm not sure how it got changed to false. Maybe, I've accidentally set it to false using some shortcut.






                  share|improve this answer






















                    protected by Aniket Thakur Jan 14 at 7:51



                    Thank you for your interest in this question.
                    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                    Would you like to answer one of these unanswered questions instead?














                    13 Answers
                    13






                    active

                    oldest

                    votes








                    13 Answers
                    13






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    1450














                    I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you.



                    When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called "Preview Mode", which allows you to quickly view files.



                    Preview Mode tabs are not kept open. As soon as you go to open another file from the sidebar, the existing Preview Mode tab (if one exists) is used. You can determine if a tab is in Preview Mode, by looking at its title in the tab bar. If the title is italic, the tab is in preview mode.



                    To open a file for editing (i.e. don't open in Preview Mode), double-click on the file in the sidebar.



                    If you want to disable Preview Mode all together, you can do so by setting "workbench.editor.enablePreview": false in your settings file. Also make note of the "workbench.editor.enablePreviewFromQuickOpen" option, in case you're looking to disable this only from quick open menu.



                    Before you can disable Preview Mode, you'll need to open your Settings File.



                    Pro Tip: You can use the Command Palette to open your settings file, just enter "Preferences: Open User Settings"!



                    Once you've opened your settings file (your settings file should be located on the right), add the "workbench.editor.enablePreview" property, and set its value to false.



                    You can learn more about Visual Studio Code's "Preview Mode", here.






                    share|improve this answer





















                    • 1





                      are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                      – YakovL
                      Jan 16 at 11:20






                    • 2





                      I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                      – Leo
                      Jan 18 at 10:48













                    • can i change double-click to ctrl+click ?

                      – mo sean
                      Feb 5 at 16:12






                    • 1





                      worth noting, that you can disable preview mode in the tab, by double-click on it.

                      – dimpiax
                      Feb 11 at 22:41
















                    1450














                    I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you.



                    When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called "Preview Mode", which allows you to quickly view files.



                    Preview Mode tabs are not kept open. As soon as you go to open another file from the sidebar, the existing Preview Mode tab (if one exists) is used. You can determine if a tab is in Preview Mode, by looking at its title in the tab bar. If the title is italic, the tab is in preview mode.



                    To open a file for editing (i.e. don't open in Preview Mode), double-click on the file in the sidebar.



                    If you want to disable Preview Mode all together, you can do so by setting "workbench.editor.enablePreview": false in your settings file. Also make note of the "workbench.editor.enablePreviewFromQuickOpen" option, in case you're looking to disable this only from quick open menu.



                    Before you can disable Preview Mode, you'll need to open your Settings File.



                    Pro Tip: You can use the Command Palette to open your settings file, just enter "Preferences: Open User Settings"!



                    Once you've opened your settings file (your settings file should be located on the right), add the "workbench.editor.enablePreview" property, and set its value to false.



                    You can learn more about Visual Studio Code's "Preview Mode", here.






                    share|improve this answer





















                    • 1





                      are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                      – YakovL
                      Jan 16 at 11:20






                    • 2





                      I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                      – Leo
                      Jan 18 at 10:48













                    • can i change double-click to ctrl+click ?

                      – mo sean
                      Feb 5 at 16:12






                    • 1





                      worth noting, that you can disable preview mode in the tab, by double-click on it.

                      – dimpiax
                      Feb 11 at 22:41














                    1450












                    1450








                    1450







                    I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you.



                    When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called "Preview Mode", which allows you to quickly view files.



                    Preview Mode tabs are not kept open. As soon as you go to open another file from the sidebar, the existing Preview Mode tab (if one exists) is used. You can determine if a tab is in Preview Mode, by looking at its title in the tab bar. If the title is italic, the tab is in preview mode.



                    To open a file for editing (i.e. don't open in Preview Mode), double-click on the file in the sidebar.



                    If you want to disable Preview Mode all together, you can do so by setting "workbench.editor.enablePreview": false in your settings file. Also make note of the "workbench.editor.enablePreviewFromQuickOpen" option, in case you're looking to disable this only from quick open menu.



                    Before you can disable Preview Mode, you'll need to open your Settings File.



                    Pro Tip: You can use the Command Palette to open your settings file, just enter "Preferences: Open User Settings"!



                    Once you've opened your settings file (your settings file should be located on the right), add the "workbench.editor.enablePreview" property, and set its value to false.



                    You can learn more about Visual Studio Code's "Preview Mode", here.






                    share|improve this answer















                    I assume you're using the file browser located within the sidebar in Visual Studio Code to open files. If you're not, this answer will likely not be of any use to you.



                    When you [single-]click a file in the sidebar, Visual Studio Code opens it in what's called "Preview Mode", which allows you to quickly view files.



                    Preview Mode tabs are not kept open. As soon as you go to open another file from the sidebar, the existing Preview Mode tab (if one exists) is used. You can determine if a tab is in Preview Mode, by looking at its title in the tab bar. If the title is italic, the tab is in preview mode.



                    To open a file for editing (i.e. don't open in Preview Mode), double-click on the file in the sidebar.



                    If you want to disable Preview Mode all together, you can do so by setting "workbench.editor.enablePreview": false in your settings file. Also make note of the "workbench.editor.enablePreviewFromQuickOpen" option, in case you're looking to disable this only from quick open menu.



                    Before you can disable Preview Mode, you'll need to open your Settings File.



                    Pro Tip: You can use the Command Palette to open your settings file, just enter "Preferences: Open User Settings"!



                    Once you've opened your settings file (your settings file should be located on the right), add the "workbench.editor.enablePreview" property, and set its value to false.



                    You can learn more about Visual Studio Code's "Preview Mode", here.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 8 at 17:39









                    danronmoon

                    2,82542549




                    2,82542549










                    answered Aug 2 '16 at 14:22









                    Brynden BielefeldBrynden Bielefeld

                    15.7k1818




                    15.7k1818








                    • 1





                      are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                      – YakovL
                      Jan 16 at 11:20






                    • 2





                      I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                      – Leo
                      Jan 18 at 10:48













                    • can i change double-click to ctrl+click ?

                      – mo sean
                      Feb 5 at 16:12






                    • 1





                      worth noting, that you can disable preview mode in the tab, by double-click on it.

                      – dimpiax
                      Feb 11 at 22:41














                    • 1





                      are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                      – YakovL
                      Jan 16 at 11:20






                    • 2





                      I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                      – Leo
                      Jan 18 at 10:48













                    • can i change double-click to ctrl+click ?

                      – mo sean
                      Feb 5 at 16:12






                    • 1





                      worth noting, that you can disable preview mode in the tab, by double-click on it.

                      – dimpiax
                      Feb 11 at 22:41








                    1




                    1





                    are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                    – YakovL
                    Jan 16 at 11:20





                    are there any options to set "open preview" to, say, shift+click, and normal opening to single click?

                    – YakovL
                    Jan 16 at 11:20




                    2




                    2





                    I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                    – Leo
                    Jan 18 at 10:48







                    I'm opening files with ⌘+P (i.e. Quick Open) so thought this answer would "likely not be of any use"... but it was. Just a word of caution when trying to put people off your answer ;)

                    – Leo
                    Jan 18 at 10:48















                    can i change double-click to ctrl+click ?

                    – mo sean
                    Feb 5 at 16:12





                    can i change double-click to ctrl+click ?

                    – mo sean
                    Feb 5 at 16:12




                    1




                    1





                    worth noting, that you can disable preview mode in the tab, by double-click on it.

                    – dimpiax
                    Feb 11 at 22:41





                    worth noting, that you can disable preview mode in the tab, by double-click on it.

                    – dimpiax
                    Feb 11 at 22:41













                    110














                    If you don't want to disable preview mode you can explicitly tell vscode to keep a specific tab open. As mentioned above a tab heading with italic text is in preview mode.



                    To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.action.keepEditor






                    share|improve this answer





















                    • 14





                      Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                      – rinogo
                      Feb 9 '17 at 18:08






                    • 48





                      You can also double-click the tab.

                      – Jarrod Smith
                      Feb 20 '17 at 21:19






                    • 15





                      cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                      – MattLBeck
                      Nov 29 '17 at 9:14








                    • 2





                      I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                      – Mike
                      Oct 4 '18 at 3:31











                    • Double clicking on the filename in the explorer works as well.

                      – Jeremy Belolo
                      Feb 24 at 16:14
















                    110














                    If you don't want to disable preview mode you can explicitly tell vscode to keep a specific tab open. As mentioned above a tab heading with italic text is in preview mode.



                    To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.action.keepEditor






                    share|improve this answer





















                    • 14





                      Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                      – rinogo
                      Feb 9 '17 at 18:08






                    • 48





                      You can also double-click the tab.

                      – Jarrod Smith
                      Feb 20 '17 at 21:19






                    • 15





                      cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                      – MattLBeck
                      Nov 29 '17 at 9:14








                    • 2





                      I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                      – Mike
                      Oct 4 '18 at 3:31











                    • Double clicking on the filename in the explorer works as well.

                      – Jeremy Belolo
                      Feb 24 at 16:14














                    110












                    110








                    110







                    If you don't want to disable preview mode you can explicitly tell vscode to keep a specific tab open. As mentioned above a tab heading with italic text is in preview mode.



                    To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.action.keepEditor






                    share|improve this answer















                    If you don't want to disable preview mode you can explicitly tell vscode to keep a specific tab open. As mentioned above a tab heading with italic text is in preview mode.



                    To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.action.keepEditor







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 28 '18 at 11:38









                    Lyes CHIOUKH

                    2,16741842




                    2,16741842










                    answered Jan 4 '17 at 9:45









                    jontemjontem

                    2,75211315




                    2,75211315








                    • 14





                      Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                      – rinogo
                      Feb 9 '17 at 18:08






                    • 48





                      You can also double-click the tab.

                      – Jarrod Smith
                      Feb 20 '17 at 21:19






                    • 15





                      cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                      – MattLBeck
                      Nov 29 '17 at 9:14








                    • 2





                      I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                      – Mike
                      Oct 4 '18 at 3:31











                    • Double clicking on the filename in the explorer works as well.

                      – Jeremy Belolo
                      Feb 24 at 16:14














                    • 14





                      Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                      – rinogo
                      Feb 9 '17 at 18:08






                    • 48





                      You can also double-click the tab.

                      – Jarrod Smith
                      Feb 20 '17 at 21:19






                    • 15





                      cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                      – MattLBeck
                      Nov 29 '17 at 9:14








                    • 2





                      I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                      – Mike
                      Oct 4 '18 at 3:31











                    • Double clicking on the filename in the explorer works as well.

                      – Jeremy Belolo
                      Feb 24 at 16:14








                    14




                    14





                    Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                    – rinogo
                    Feb 9 '17 at 18:08





                    Ah, super intuitive - the ol' Cmd + K Enter! ;) Thanks, @jontem - this was exactly what I was looking for. Love VSCode for some things, love it a lot less for "fixing" things that weren't broken (like this!)

                    – rinogo
                    Feb 9 '17 at 18:08




                    48




                    48





                    You can also double-click the tab.

                    – Jarrod Smith
                    Feb 20 '17 at 21:19





                    You can also double-click the tab.

                    – Jarrod Smith
                    Feb 20 '17 at 21:19




                    15




                    15





                    cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                    – MattLBeck
                    Nov 29 '17 at 9:14







                    cmd+s (save file) also kicks the file out of preview mode, even if there are no changes to save, and I find it a little easier to use over cmd+k Enter.

                    – MattLBeck
                    Nov 29 '17 at 9:14






                    2




                    2





                    I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                    – Mike
                    Oct 4 '18 at 3:31





                    I want Ctrl+Click. Double-click does not do what I want. If I do not already have a preview tab open, then the first click creates a new tab and adds a line to the Open Editors section of the Explorer. Because of this, when my second click lands, it lands on the file directly above the one I am trying to open!!! Even if I move Open Editors below the file list, if I do have a preview tab open, what was being previewed is completely replaced by what I have just opened.

                    – Mike
                    Oct 4 '18 at 3:31













                    Double clicking on the filename in the explorer works as well.

                    – Jeremy Belolo
                    Feb 24 at 16:14





                    Double clicking on the filename in the explorer works as well.

                    – Jeremy Belolo
                    Feb 24 at 16:14











                    76














                    I came up with the same problem, and open setting.json file, add the following:



                    "workbench.editor.enablePreview": false





                    share|improve this answer





















                    • 5





                      You also want workbench.editor.enablePreviewFromQuickOpen

                      – James Moore
                      Aug 15 '17 at 22:38






                    • 1





                      @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                      – jialin wang
                      Aug 17 '17 at 6:53






                    • 1





                      @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                      – Jepzen
                      Nov 11 '17 at 9:23
















                    76














                    I came up with the same problem, and open setting.json file, add the following:



                    "workbench.editor.enablePreview": false





                    share|improve this answer





















                    • 5





                      You also want workbench.editor.enablePreviewFromQuickOpen

                      – James Moore
                      Aug 15 '17 at 22:38






                    • 1





                      @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                      – jialin wang
                      Aug 17 '17 at 6:53






                    • 1





                      @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                      – Jepzen
                      Nov 11 '17 at 9:23














                    76












                    76








                    76







                    I came up with the same problem, and open setting.json file, add the following:



                    "workbench.editor.enablePreview": false





                    share|improve this answer















                    I came up with the same problem, and open setting.json file, add the following:



                    "workbench.editor.enablePreview": false






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 1 '17 at 11:53









                    Aliaxander

                    1,38921231




                    1,38921231










                    answered Aug 1 '17 at 7:33









                    jialin wangjialin wang

                    1,20865




                    1,20865








                    • 5





                      You also want workbench.editor.enablePreviewFromQuickOpen

                      – James Moore
                      Aug 15 '17 at 22:38






                    • 1





                      @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                      – jialin wang
                      Aug 17 '17 at 6:53






                    • 1





                      @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                      – Jepzen
                      Nov 11 '17 at 9:23














                    • 5





                      You also want workbench.editor.enablePreviewFromQuickOpen

                      – James Moore
                      Aug 15 '17 at 22:38






                    • 1





                      @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                      – jialin wang
                      Aug 17 '17 at 6:53






                    • 1





                      @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                      – Jepzen
                      Nov 11 '17 at 9:23








                    5




                    5





                    You also want workbench.editor.enablePreviewFromQuickOpen

                    – James Moore
                    Aug 15 '17 at 22:38





                    You also want workbench.editor.enablePreviewFromQuickOpen

                    – James Moore
                    Aug 15 '17 at 22:38




                    1




                    1





                    @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                    – jialin wang
                    Aug 17 '17 at 6:53





                    @JamesMoore after my setting ,it's ok,and I don't know enablePreviewFromQuickOpen is for what.

                    – jialin wang
                    Aug 17 '17 at 6:53




                    1




                    1





                    @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                    – Jepzen
                    Nov 11 '17 at 9:23





                    @JamesMoore You hit the spot! This in the one I needed, I want preview when I click a file but real open from Ctrl + P- Just like in Sublime text

                    – Jepzen
                    Nov 11 '17 at 9:23











                    27














                    Use workbench.editor.enablePreview: false to disable Preview mode completely.



                    Use workbench.editor.enablePreviewFromQuickOpen: false to disable Preview mode for the files open from quick open menu.






                    share|improve this answer




























                      27














                      Use workbench.editor.enablePreview: false to disable Preview mode completely.



                      Use workbench.editor.enablePreviewFromQuickOpen: false to disable Preview mode for the files open from quick open menu.






                      share|improve this answer


























                        27












                        27








                        27







                        Use workbench.editor.enablePreview: false to disable Preview mode completely.



                        Use workbench.editor.enablePreviewFromQuickOpen: false to disable Preview mode for the files open from quick open menu.






                        share|improve this answer













                        Use workbench.editor.enablePreview: false to disable Preview mode completely.



                        Use workbench.editor.enablePreviewFromQuickOpen: false to disable Preview mode for the files open from quick open menu.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 29 '17 at 23:28









                        FatihFatih

                        21.8k84552




                        21.8k84552























                            13














                            For anyone who don't want to disabled Preview Mode.



                            As I read whole of comments and I found what I preferred that is the shortcut key to pin the opened file from Quick Open/Ctrl+P or that's mean to keep the opened file to the editor, and yes also don't need to switch your hand to the mouse to double-click on files list.



                            Thanks to @jontem and @MattLBeck.



                            Call save command with Ctrl+S (cmd+s) is the easiest way to reach what I preferred.



                            And if you found out you do this to keep opened file to editor quite frequently, yes I preferred you should setting the option "workbench.editor.enablePreview": false or "workbench.editor.enablePreviewFromQuickOpen": false as others mentioned before.






                            share|improve this answer






























                              13














                              For anyone who don't want to disabled Preview Mode.



                              As I read whole of comments and I found what I preferred that is the shortcut key to pin the opened file from Quick Open/Ctrl+P or that's mean to keep the opened file to the editor, and yes also don't need to switch your hand to the mouse to double-click on files list.



                              Thanks to @jontem and @MattLBeck.



                              Call save command with Ctrl+S (cmd+s) is the easiest way to reach what I preferred.



                              And if you found out you do this to keep opened file to editor quite frequently, yes I preferred you should setting the option "workbench.editor.enablePreview": false or "workbench.editor.enablePreviewFromQuickOpen": false as others mentioned before.






                              share|improve this answer




























                                13












                                13








                                13







                                For anyone who don't want to disabled Preview Mode.



                                As I read whole of comments and I found what I preferred that is the shortcut key to pin the opened file from Quick Open/Ctrl+P or that's mean to keep the opened file to the editor, and yes also don't need to switch your hand to the mouse to double-click on files list.



                                Thanks to @jontem and @MattLBeck.



                                Call save command with Ctrl+S (cmd+s) is the easiest way to reach what I preferred.



                                And if you found out you do this to keep opened file to editor quite frequently, yes I preferred you should setting the option "workbench.editor.enablePreview": false or "workbench.editor.enablePreviewFromQuickOpen": false as others mentioned before.






                                share|improve this answer















                                For anyone who don't want to disabled Preview Mode.



                                As I read whole of comments and I found what I preferred that is the shortcut key to pin the opened file from Quick Open/Ctrl+P or that's mean to keep the opened file to the editor, and yes also don't need to switch your hand to the mouse to double-click on files list.



                                Thanks to @jontem and @MattLBeck.



                                Call save command with Ctrl+S (cmd+s) is the easiest way to reach what I preferred.



                                And if you found out you do this to keep opened file to editor quite frequently, yes I preferred you should setting the option "workbench.editor.enablePreview": false or "workbench.editor.enablePreviewFromQuickOpen": false as others mentioned before.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Nov 19 '18 at 1:31

























                                answered May 18 '18 at 10:40









                                Natta WangNatta Wang

                                195212




                                195212























                                    12















                                    ⚡ Actually, VSCode shows you the preview of a file.




                                    You can disable the preview with this:



                                    "workbench.editor.enablePreview": false,


                                    ⬇️ Basically just add these two settings and you're good to go.



                                    VSCode tip






                                    share|improve this answer






























                                      12















                                      ⚡ Actually, VSCode shows you the preview of a file.




                                      You can disable the preview with this:



                                      "workbench.editor.enablePreview": false,


                                      ⬇️ Basically just add these two settings and you're good to go.



                                      VSCode tip






                                      share|improve this answer




























                                        12












                                        12








                                        12








                                        ⚡ Actually, VSCode shows you the preview of a file.




                                        You can disable the preview with this:



                                        "workbench.editor.enablePreview": false,


                                        ⬇️ Basically just add these two settings and you're good to go.



                                        VSCode tip






                                        share|improve this answer
















                                        ⚡ Actually, VSCode shows you the preview of a file.




                                        You can disable the preview with this:



                                        "workbench.editor.enablePreview": false,


                                        ⬇️ Basically just add these two settings and you're good to go.



                                        VSCode tip







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Oct 9 '18 at 20:54

























                                        answered May 18 '18 at 12:27









                                        Ahmad AwaisAhmad Awais

                                        11.1k24436




                                        11.1k24436























                                            11















                                            Watch for filename in italic




                                            Note that, the file name on the tab is formatted in italic if it has been opened in Preview Mode.




                                            Quickly take a file out of Preview Mode




                                            To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic.




                                            Feature or bug?




                                            I believe Preview Mode is helpful especially when you have limited screen space and need to check many files.






                                            share|improve this answer





















                                            • 2





                                              You can also double-click the file in the file browser / explorer pane.

                                              – csum
                                              Jan 23 '18 at 22:44
















                                            11















                                            Watch for filename in italic




                                            Note that, the file name on the tab is formatted in italic if it has been opened in Preview Mode.




                                            Quickly take a file out of Preview Mode




                                            To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic.




                                            Feature or bug?




                                            I believe Preview Mode is helpful especially when you have limited screen space and need to check many files.






                                            share|improve this answer





















                                            • 2





                                              You can also double-click the file in the file browser / explorer pane.

                                              – csum
                                              Jan 23 '18 at 22:44














                                            11












                                            11








                                            11








                                            Watch for filename in italic




                                            Note that, the file name on the tab is formatted in italic if it has been opened in Preview Mode.




                                            Quickly take a file out of Preview Mode




                                            To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic.




                                            Feature or bug?




                                            I believe Preview Mode is helpful especially when you have limited screen space and need to check many files.






                                            share|improve this answer
















                                            Watch for filename in italic




                                            Note that, the file name on the tab is formatted in italic if it has been opened in Preview Mode.




                                            Quickly take a file out of Preview Mode




                                            To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic.




                                            Feature or bug?




                                            I believe Preview Mode is helpful especially when you have limited screen space and need to check many files.







                                            share|improve this answer














                                            share|improve this answer



                                            share|improve this answer








                                            edited Nov 30 '18 at 7:39

























                                            answered Sep 8 '17 at 3:41









                                            hktanghktang

                                            9941529




                                            9941529








                                            • 2





                                              You can also double-click the file in the file browser / explorer pane.

                                              – csum
                                              Jan 23 '18 at 22:44














                                            • 2





                                              You can also double-click the file in the file browser / explorer pane.

                                              – csum
                                              Jan 23 '18 at 22:44








                                            2




                                            2





                                            You can also double-click the file in the file browser / explorer pane.

                                            – csum
                                            Jan 23 '18 at 22:44





                                            You can also double-click the file in the file browser / explorer pane.

                                            – csum
                                            Jan 23 '18 at 22:44











                                            5














                                            Menu FilePreferencesUser Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false






                                            share|improve this answer






























                                              5














                                              Menu FilePreferencesUser Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false






                                              share|improve this answer




























                                                5












                                                5








                                                5







                                                Menu FilePreferencesUser Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false






                                                share|improve this answer















                                                Menu FilePreferencesUser Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Dec 15 '18 at 17:54









                                                Peter Mortensen

                                                13.7k1986112




                                                13.7k1986112










                                                answered Apr 26 '18 at 13:50









                                                samivicsamivic

                                                15124




                                                15124























                                                    3














                                                    Open in new Tab Solution:




                                                    1. Open the command palette by: Cmd + Shift + K

                                                    2. Open settings file by: Preferences: Open Settings (JSON)

                                                    3. Under user setting, enable Tabs by: "workbench.editor.showTabs": true






                                                    share|improve this answer






























                                                      3














                                                      Open in new Tab Solution:




                                                      1. Open the command palette by: Cmd + Shift + K

                                                      2. Open settings file by: Preferences: Open Settings (JSON)

                                                      3. Under user setting, enable Tabs by: "workbench.editor.showTabs": true






                                                      share|improve this answer




























                                                        3












                                                        3








                                                        3







                                                        Open in new Tab Solution:




                                                        1. Open the command palette by: Cmd + Shift + K

                                                        2. Open settings file by: Preferences: Open Settings (JSON)

                                                        3. Under user setting, enable Tabs by: "workbench.editor.showTabs": true






                                                        share|improve this answer















                                                        Open in new Tab Solution:




                                                        1. Open the command palette by: Cmd + Shift + K

                                                        2. Open settings file by: Preferences: Open Settings (JSON)

                                                        3. Under user setting, enable Tabs by: "workbench.editor.showTabs": true







                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited Feb 14 at 1:35









                                                        Gama11

                                                        11.7k52348




                                                        11.7k52348










                                                        answered Nov 15 '18 at 0:35









                                                        Suman AcharyaSuman Acharya

                                                        311




                                                        311























                                                            2














                                                            You can do it via GUI



                                                            enter image description here



                                                            Search for preview



                                                            enter image description here



                                                            uncheck the options Enable Preview and Enable Preview from Quick Open






                                                            share|improve this answer




























                                                              2














                                                              You can do it via GUI



                                                              enter image description here



                                                              Search for preview



                                                              enter image description here



                                                              uncheck the options Enable Preview and Enable Preview from Quick Open






                                                              share|improve this answer


























                                                                2












                                                                2








                                                                2







                                                                You can do it via GUI



                                                                enter image description here



                                                                Search for preview



                                                                enter image description here



                                                                uncheck the options Enable Preview and Enable Preview from Quick Open






                                                                share|improve this answer













                                                                You can do it via GUI



                                                                enter image description here



                                                                Search for preview



                                                                enter image description here



                                                                uncheck the options Enable Preview and Enable Preview from Quick Open







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Dec 27 '18 at 5:52









                                                                illusionistillusionist

                                                                5,0822748




                                                                5,0822748























                                                                    2














                                                                    As hktang above indicates:



                                                                    one Click opens the file in preview mode (header text in italics)



                                                                    Double click the same file, it goes out of preview-mode (header text changes from italic to normal font)



                                                                    I think this is a "comprimise" feature allowing users, to "navigate" both worlds; preview and none-preview.




                                                                    • All you do is click the file to open it in the right panel.

                                                                    • Then immediately double click it to keep it there.

                                                                    • Or - just treble click. File opens in none preview mode.


                                                                    HTH
                                                                    Paul S.






                                                                    share|improve this answer






























                                                                      2














                                                                      As hktang above indicates:



                                                                      one Click opens the file in preview mode (header text in italics)



                                                                      Double click the same file, it goes out of preview-mode (header text changes from italic to normal font)



                                                                      I think this is a "comprimise" feature allowing users, to "navigate" both worlds; preview and none-preview.




                                                                      • All you do is click the file to open it in the right panel.

                                                                      • Then immediately double click it to keep it there.

                                                                      • Or - just treble click. File opens in none preview mode.


                                                                      HTH
                                                                      Paul S.






                                                                      share|improve this answer




























                                                                        2












                                                                        2








                                                                        2







                                                                        As hktang above indicates:



                                                                        one Click opens the file in preview mode (header text in italics)



                                                                        Double click the same file, it goes out of preview-mode (header text changes from italic to normal font)



                                                                        I think this is a "comprimise" feature allowing users, to "navigate" both worlds; preview and none-preview.




                                                                        • All you do is click the file to open it in the right panel.

                                                                        • Then immediately double click it to keep it there.

                                                                        • Or - just treble click. File opens in none preview mode.


                                                                        HTH
                                                                        Paul S.






                                                                        share|improve this answer















                                                                        As hktang above indicates:



                                                                        one Click opens the file in preview mode (header text in italics)



                                                                        Double click the same file, it goes out of preview-mode (header text changes from italic to normal font)



                                                                        I think this is a "comprimise" feature allowing users, to "navigate" both worlds; preview and none-preview.




                                                                        • All you do is click the file to open it in the right panel.

                                                                        • Then immediately double click it to keep it there.

                                                                        • Or - just treble click. File opens in none preview mode.


                                                                        HTH
                                                                        Paul S.







                                                                        share|improve this answer














                                                                        share|improve this answer



                                                                        share|improve this answer








                                                                        edited Jan 4 at 12:07

























                                                                        answered Jan 4 at 11:31









                                                                        Paul SchwartzbergPaul Schwartzberg

                                                                        212




                                                                        212























                                                                            1














                                                                            This is so confusing. All developers I asked didn't appreciate this default behavior.



                                                                            I use cmd + P to open project files.






                                                                            share|improve this answer




























                                                                              1














                                                                              This is so confusing. All developers I asked didn't appreciate this default behavior.



                                                                              I use cmd + P to open project files.






                                                                              share|improve this answer


























                                                                                1












                                                                                1








                                                                                1







                                                                                This is so confusing. All developers I asked didn't appreciate this default behavior.



                                                                                I use cmd + P to open project files.






                                                                                share|improve this answer













                                                                                This is so confusing. All developers I asked didn't appreciate this default behavior.



                                                                                I use cmd + P to open project files.







                                                                                share|improve this answer












                                                                                share|improve this answer



                                                                                share|improve this answer










                                                                                answered Aug 2 '18 at 13:59









                                                                                Kamil DzieniszewskiKamil Dzieniszewski

                                                                                369




                                                                                369























                                                                                    0














                                                                                    In my case, I also had to set workbench.editor.showTabs property to true (in addition to workbench.editor.enablePreview)



                                                                                    I'm not sure how it got changed to false. Maybe, I've accidentally set it to false using some shortcut.






                                                                                    share|improve this answer




























                                                                                      0














                                                                                      In my case, I also had to set workbench.editor.showTabs property to true (in addition to workbench.editor.enablePreview)



                                                                                      I'm not sure how it got changed to false. Maybe, I've accidentally set it to false using some shortcut.






                                                                                      share|improve this answer


























                                                                                        0












                                                                                        0








                                                                                        0







                                                                                        In my case, I also had to set workbench.editor.showTabs property to true (in addition to workbench.editor.enablePreview)



                                                                                        I'm not sure how it got changed to false. Maybe, I've accidentally set it to false using some shortcut.






                                                                                        share|improve this answer













                                                                                        In my case, I also had to set workbench.editor.showTabs property to true (in addition to workbench.editor.enablePreview)



                                                                                        I'm not sure how it got changed to false. Maybe, I've accidentally set it to false using some shortcut.







                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered Oct 22 '18 at 19:39









                                                                                        IevgenIevgen

                                                                                        2,81752137




                                                                                        2,81752137

















                                                                                            protected by Aniket Thakur Jan 14 at 7:51



                                                                                            Thank you for your interest in this question.
                                                                                            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                                                            Would you like to answer one of these unanswered questions instead?



                                                                                            Popular posts from this blog

                                                                                            Florida Star v. B. J. F.

                                                                                            Danny Elfman

                                                                                            Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues