Skip to content

Command for going to previously-used tab #1819

@amacfie-tc

Description

@amacfie-tc

Check for existing issues

  • Completed

Describe the feature

There are commands for "Open previous file tab" and "Open next file tab" which go back and forward in the list of tabs in the fixed order in which they're displayed. It would be useful to have a command that goes back to the tab opened before the current one. This is called "View: Open Previous Editor" in VS Code (workbench.action.openPreviousEditorFromHistory"). This way there would be an easy way to "jump back" after jumping to a different file (via "Go to definition" for example).

Running the command twice would go back two steps in history, etc. I guess there should be a command to go forward in history too. More details: https://www.geeksforgeeks.org/system-design/design-custom-browser-history-based-on-given-operations/

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions