How do I configure Visual Studio Code to open files always in a new tab?
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
add a comment |
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
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
add a comment |
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
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
visual-studio-code
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
add a comment |
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
add a comment |
13 Answers
13
active
oldest
votes
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.
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 changedouble-click
toctrl+click
?
– mo sean
Feb 5 at 16:12
1
worth noting, that you can disablepreview mode
in the tab, by double-click on it.
– dimpiax
Feb 11 at 22:41
add a comment |
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
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 overcmd+k Enter
.
– MattLBeck
Nov 29 '17 at 9:14
2
I wantCtrl+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
add a comment |
I came up with the same problem, and open setting.json file, add the following:
"workbench.editor.enablePreview": false
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
add a comment |
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.
add a comment |
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.
add a comment |
⚡ 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.
add a comment |
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.
2
You can also double-click the file in the file browser / explorer pane.
– csum
Jan 23 '18 at 22:44
add a comment |
Menu File → Preferences → User Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false
add a comment |
Open in new Tab Solution:
- Open the command palette by: Cmd + Shift + K
- Open settings file by: Preferences: Open Settings (JSON)
- Under user setting, enable Tabs by:
"workbench.editor.showTabs": true
add a comment |
You can do it via GUI
Search for preview
uncheck the options Enable Preview
and Enable Preview from Quick Open
add a comment |
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.
add a comment |
This is so confusing. All developers I asked didn't appreciate this default behavior.
I use cmd + P
to open project files.
add a comment |
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.
add a comment |
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
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.
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 changedouble-click
toctrl+click
?
– mo sean
Feb 5 at 16:12
1
worth noting, that you can disablepreview mode
in the tab, by double-click on it.
– dimpiax
Feb 11 at 22:41
add a comment |
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.
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 changedouble-click
toctrl+click
?
– mo sean
Feb 5 at 16:12
1
worth noting, that you can disablepreview mode
in the tab, by double-click on it.
– dimpiax
Feb 11 at 22:41
add a comment |
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.
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.
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 changedouble-click
toctrl+click
?
– mo sean
Feb 5 at 16:12
1
worth noting, that you can disablepreview mode
in the tab, by double-click on it.
– dimpiax
Feb 11 at 22:41
add a comment |
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 changedouble-click
toctrl+click
?
– mo sean
Feb 5 at 16:12
1
worth noting, that you can disablepreview 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
add a comment |
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
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 overcmd+k Enter
.
– MattLBeck
Nov 29 '17 at 9:14
2
I wantCtrl+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
add a comment |
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
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 overcmd+k Enter
.
– MattLBeck
Nov 29 '17 at 9:14
2
I wantCtrl+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
add a comment |
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
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
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 overcmd+k Enter
.
– MattLBeck
Nov 29 '17 at 9:14
2
I wantCtrl+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
add a comment |
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 overcmd+k Enter
.
– MattLBeck
Nov 29 '17 at 9:14
2
I wantCtrl+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
add a comment |
I came up with the same problem, and open setting.json file, add the following:
"workbench.editor.enablePreview": false
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
add a comment |
I came up with the same problem, and open setting.json file, add the following:
"workbench.editor.enablePreview": false
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
add a comment |
I came up with the same problem, and open setting.json file, add the following:
"workbench.editor.enablePreview": false
I came up with the same problem, and open setting.json file, add the following:
"workbench.editor.enablePreview": false
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Sep 29 '17 at 23:28
FatihFatih
21.8k84552
21.8k84552
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 19 '18 at 1:31
answered May 18 '18 at 10:40
Natta WangNatta Wang
195212
195212
add a comment |
add a comment |
⚡ 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.
add a comment |
⚡ 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.
add a comment |
⚡ 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.
⚡ 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.
edited Oct 9 '18 at 20:54
answered May 18 '18 at 12:27
Ahmad AwaisAhmad Awais
11.1k24436
11.1k24436
add a comment |
add a comment |
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.
2
You can also double-click the file in the file browser / explorer pane.
– csum
Jan 23 '18 at 22:44
add a comment |
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.
2
You can also double-click the file in the file browser / explorer pane.
– csum
Jan 23 '18 at 22:44
add a comment |
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.
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.
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
add a comment |
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
add a comment |
Menu File → Preferences → User Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false
add a comment |
Menu File → Preferences → User Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false
add a comment |
Menu File → Preferences → User Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false
Menu File → Preferences → User Settings: add this line "workbench.editor.enablePreviewFromQuickOpen": false
edited Dec 15 '18 at 17:54
Peter Mortensen
13.7k1986112
13.7k1986112
answered Apr 26 '18 at 13:50
samivicsamivic
15124
15124
add a comment |
add a comment |
Open in new Tab Solution:
- Open the command palette by: Cmd + Shift + K
- Open settings file by: Preferences: Open Settings (JSON)
- Under user setting, enable Tabs by:
"workbench.editor.showTabs": true
add a comment |
Open in new Tab Solution:
- Open the command palette by: Cmd + Shift + K
- Open settings file by: Preferences: Open Settings (JSON)
- Under user setting, enable Tabs by:
"workbench.editor.showTabs": true
add a comment |
Open in new Tab Solution:
- Open the command palette by: Cmd + Shift + K
- Open settings file by: Preferences: Open Settings (JSON)
- Under user setting, enable Tabs by:
"workbench.editor.showTabs": true
Open in new Tab Solution:
- Open the command palette by: Cmd + Shift + K
- Open settings file by: Preferences: Open Settings (JSON)
- Under user setting, enable Tabs by:
"workbench.editor.showTabs": true
edited Feb 14 at 1:35
Gama11
11.7k52348
11.7k52348
answered Nov 15 '18 at 0:35
Suman AcharyaSuman Acharya
311
311
add a comment |
add a comment |
You can do it via GUI
Search for preview
uncheck the options Enable Preview
and Enable Preview from Quick Open
add a comment |
You can do it via GUI
Search for preview
uncheck the options Enable Preview
and Enable Preview from Quick Open
add a comment |
You can do it via GUI
Search for preview
uncheck the options Enable Preview
and Enable Preview from Quick Open
You can do it via GUI
Search for preview
uncheck the options Enable Preview
and Enable Preview from Quick Open
answered Dec 27 '18 at 5:52
illusionistillusionist
5,0822748
5,0822748
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Jan 4 at 12:07
answered Jan 4 at 11:31
Paul SchwartzbergPaul Schwartzberg
212
212
add a comment |
add a comment |
This is so confusing. All developers I asked didn't appreciate this default behavior.
I use cmd + P
to open project files.
add a comment |
This is so confusing. All developers I asked didn't appreciate this default behavior.
I use cmd + P
to open project files.
add a comment |
This is so confusing. All developers I asked didn't appreciate this default behavior.
I use cmd + P
to open project files.
This is so confusing. All developers I asked didn't appreciate this default behavior.
I use cmd + P
to open project files.
answered Aug 2 '18 at 13:59
Kamil DzieniszewskiKamil Dzieniszewski
369
369
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Oct 22 '18 at 19:39
IevgenIevgen
2,81752137
2,81752137
add a comment |
add a comment |
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?
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