Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

How can I prevent Visual Studio Code from replacing a newly opened, unmodified (preview) tab with a subsequently opened one?

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?

Answer*

Draft saved
Draft discarded
Cancel
4
  • 1
    Yep. Pressing "right arrow" to open in a new tab works on Windows too. Commented Feb 12, 2020 at 11:49
  • 2
    Perfect - THIS should have been the accepted answer, as it does not 'fix' the problem by disabling a useful feature, but instead answers the question by showing how Ctrl-P to open files should be used! The fact it keeps the Go To File open as well is an excellent bonus Commented Jun 15, 2020 at 8:38
  • 1
    This is no longer working, has this feature been removed? Can anyone confirm if it still works? Commented Jul 28, 2021 at 12:45
  • 1
    Re "⌘ + P": It is Ctrl + P for the rest of us Commented Nov 23, 2025 at 13:57

AltStyle によって変換されたページ (->オリジナル) /