You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to open the same file in multiple editors of the same group #41289
I wish I could open the same file in multiple tabs. Basically, I want the same functionality as cmd+2 gives me, but without creating a split.
In another editor that I use, my workflow consists of this rather than splits or bookmarks. I "duplicate" the current view, scroll to the other place in the file that I want to inspect and to "go back", I just close the tab again. Once you are used to it, it's a very nice workflow.
Now, as far as I can tell, this is not really possible? I'll gladly create an extension if possible. I guess I could allow opening files with an additional query-parameter or something, effectively showing two copies of the same file. However, I worry that this would give me constant "this file was changed outside" dialogs which is not what I want -- I want the buffers synchronized the way splits are.
Can someone help me in the right direction?
Reacted by Kejsi Struga, Pine, Mihai Codoban, Emmanuel Massaquoi, Kostas Chatzikokolakis, Tero Saarni, Isaac Pei, Lisanna, Richard Gura, Binyamin Laukstein and 111 more
Reacted by Mihai Codoban, els2520, M.K. Safi, Łukasz Polowczyk, Arthur Conmy, José Varela, Dylan Landry, mgnsr, Villanelle O'Reilly and Lingqing Gan
changed the title [-]Feature request: multiple tabs of same file[/-][+]Allow to open the same file in multiple editors of the same group[/+]on Jan 8, 2018
Or at least allow opening the same directory in multiple windows to workaround not being able to open the same file in multiple tabs / editors within the same window.
Worth re-posting: sym-linking and .git/info/exclude solves this problem:
Assuming you're using .cpp (c++) files: First add *.ln.cpp to the .git/info/exclude file, then make a symlink of file.cpp named file.ln.cpp
And voila, you can have 2 VSCode tabs of file.cpp 👍🏻
And if you want more than 2, do the same with *.ln2.cpp and *.ln3.cpp, as many times as you want.
Incredible that a billion dollar company can't implement something this basic.
Microsoft (@microsoft), please, pull your head out of wherever you stuck it. There's no other editor which can't do this. You're embarrassing yourself.
I'm confused as to why this feature request was closed. It is highly requested and a standard feature in many text editors. The comment that closed this provided no reasons. This feature would be more useful than most features released recently.
Reacted by sromeroi, Felix Wong, Martin Licht, Sam Atman, Marcin Falkowski, Jonathan Hassall and Tihon
Activity
[-]Feature request: multiple tabs of same file[/-][+]Allow to open the same file in multiple editors of the same group[/+]cdmihai commentedon Jan 21, 2018
Or at least allow opening the same directory in multiple windows to workaround not being able to open the same file in multiple tabs / editors within the same window.
cdmihai commentedon Jan 21, 2018
Sublime has this with File -> New View Into File
jamesTbaker commentedon Mar 15, 2018
+1
aaly00 commentedon Oct 15, 2018
+1
DatStorm commentedon Dec 20, 2018
+1
kouts commentedon Apr 19, 2019
+1 this is what keeps me switching over from Sublime
67 remaining items
martinlicht commentedon Jun 1, 2024
A desirable feature for VSCode that is still missing ✔️ 👏
divinity76 commentedon Jun 2, 2024
Worth re-posting: sym-linking and .git/info/exclude solves this problem:
Assuming you're using .cpp (c++) files: First add
*.ln.cppto the .git/info/exclude file, then make a symlink of file.cpp named file.ln.cppAnd voila, you can have 2 VSCode tabs of file.cpp 👍🏻
And if you want more than 2, do the same with *.ln2.cpp and *.ln3.cpp, as many times as you want.
Edit: also requires settings.json
lukaszpolowczyk commentedon Jun 2, 2024
divinity76 It doesn't quite work: #41289 (comment)
meherpappur commentedon Jun 27, 2024
Why is this request closed? Are there no plans of implementation?
divinity76 commentedon Jun 27, 2024
Łukasz Polowczyk (@lukaszpolowczyk) those issues can largely be mitigated by going to settings.json and setting
then an autosave happens whenever you switch to another tab :)
Jackenmen commentedon Jun 27, 2024
This is trippy... There's no "closed" event on the timeline, or at least I can't see one, and yet the PR appears as closed.
mnemnion commentedon Jul 8, 2024
Incredible that a billion dollar company can't implement something this basic.
Microsoft (@microsoft), please, pull your head out of wherever you stuck it. There's no other editor which can't do this. You're embarrassing yourself.
martinlicht commentedon Jul 25, 2024
It would be nice to learn why this is tagged as "out-of-scope", and within which scope this belongs.
HonestTelevision commentedon Aug 14, 2024
+1, it would be very useful to have this feature, especially in big files
niwazukihon commentedon Sep 22, 2025
I'm confused as to why this feature request was closed. It is highly requested and a standard feature in many text editors. The comment that closed this provided no reasons. This feature would be more useful than most features released recently.
andrej-mihachou commentedon Oct 19, 2025
Could you please let us know, whether there are any plans on implementing this in future? This seems small yet the benefits are huge.
AncientRo commentedon Jan 14, 2026
+1. This is very much needed.
keitaroforwork-create commentedon Jan 20, 2026
広い層から需要があることを示したいのであえて訳さずに書きます。
お願いします、この機能を実装してください。
pmilevv commentedon Jan 22, 2026
+1
manuel-wagesreither commentedon Jul 8, 2026
+1
This feature is crucial. Working with files that are thousands of lines long is really tough otherwise.
Why should I suffer just because the author of the document I'm editing decided to store the entire codebase in one file?