Skip to content

Allow to open the same file in multiple editors of the same group #41289

Closed

Description

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?

Activity

  1. added
    workbench-tabs
    on Jan 8, 2018
  2. 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
  3. added
    workbench-editors
    feature-request
    and removed
    workbench-tabs
    on Jan 8, 2018
  4. cdmihai commented on Jan 21, 2018

    @cdmihai

    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.

  5. cdmihai commented on Jan 21, 2018

    @cdmihai

    Sublime has this with File -> New View Into File

  6. jamesTbaker commented on Mar 15, 2018

    @jamesTbaker

    +1

  7. aaly00 commented on Oct 15, 2018

    @aaly00

    +1

  8. DatStorm commented on Dec 20, 2018

    @DatStorm

    +1

  9. kouts commented on Apr 19, 2019

    @kouts

    +1 this is what keeps me switching over from Sublime

  10. 67 remaining items

  11. martinlicht commented on Jun 1, 2024

    @martinlicht

    A desirable feature for VSCode that is still missing ✔️ 👏

  12. divinity76 commented on Jun 2, 2024

    @divinity76
    Contributor

    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.

    Edit: also requires settings.json

    "files.autoSave": "onFocusChange",
    
  13. lukaszpolowczyk commented on Jun 2, 2024

    @lukaszpolowczyk

    divinity76 It doesn't quite work: #41289 (comment)

  14. meherpappur commented on Jun 27, 2024

    @meherpappur

    Why is this request closed? Are there no plans of implementation?

  15. divinity76 commented on Jun 27, 2024

    @divinity76
    Contributor

    Łukasz Polowczyk (@lukaszpolowczyk) those issues can largely be mitigated by going to settings.json and setting

    "files.autoSave": "onFocusChange",

    then an autosave happens whenever you switch to another tab :)

  16. Jackenmen commented on Jun 27, 2024

    @Jackenmen

    Why is this request closed?

    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.

  17. mnemnion commented on Jul 8, 2024

    @mnemnion

    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.

  18. martinlicht commented on Jul 25, 2024

    @martinlicht

    It would be nice to learn why this is tagged as "out-of-scope", and within which scope this belongs.

  19. HonestTelevision commented on Aug 14, 2024

    @HonestTelevision

    +1, it would be very useful to have this feature, especially in big files

  20. niwazukihon commented on Sep 22, 2025

    @niwazukihon

    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.

  21. andrej-mihachou commented on Oct 19, 2025

    @andrej-mihachou

    Could you please let us know, whether there are any plans on implementing this in future? This seems small yet the benefits are huge.

  22. AncientRo commented on Jan 14, 2026

    @AncientRo

    +1. This is very much needed.

  23. keitaroforwork-create commented on Jan 20, 2026

    @keitaroforwork-create

    広い層から需要があることを示したいのであえて訳さずに書きます。
    お願いします、この機能を実装してください。

  24. pmilevv commented on Jan 22, 2026

    @pmilevv

    +1

  25. manuel-wagesreither commented on Jul 8, 2026

    @manuel-wagesreither

    +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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopefeature-requestworkbench-editors

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions