Visual Studio Code - Can "OPEN EDITORS" panel be sorted?

Sometimes when I'm working I end up with several open tabs. My problem is that every time I need to switch to another file I need to constantly scroll until I find the desired file (which is not always easy to find).

For example, I may have over 30 open files, but I'm currently working only on 3 - 5 on which I constantly switch.

Those files should be kept together at top (sorted by last used/saved) instead on the date they were first opened.

Top tabs aren't sorted either.

Android Studio does a better job on this, so I thought Visual Studio Code may have a preference for it.

Is there a property to change this? I couldn't find a hint on settings.

enter image description here


Solution 1:

Update 2020-12-16

With release v1.52.0 being shipped you can sort open editors. From the release notes:

There is a new setting explorer.openEditors.sortOrder to control the sort order in the OPEN EDITORS list.

The values are:

  • editorOrder - Editors are listed in the same order as editor tabs are shown (default).
  • alphabetical - Editors are listed in alphabetical order inside each editor group.

Update 2020-11-16

It seems this will be possible with the next November release v1.52.0 (Reference). This release is expected to be shipped early December 2020.

Original Answer

This is currently not possible.
However the VS Code team is aware of this feature request and it can be tracked here.

Solution 2:

It seems the feature request is open for ages.

At least someone created a plugin for sorting all open editors alphabetically. https://marketplace.visualstudio.com/items?itemName=omagerio.tabsort

Solution 3:

Check the Stack Tabs extension: https://marketplace.visualstudio.com/items?itemName=kylepaulsen.stack-tabs

It simply moves the currently active tab to the top.

It would be nice to add a "only stack a tab on save" option though.