Dirty Tab Cycle
Jump between unsaved editors without stopping on clean tabs.
Dirty Tab Cycle adds two commands to VS Code that move through open dirty text editors in visible tab order. If you are working across several files or untitled buffers, it gives you a fast next or previous unsaved editor command with wraparound.
Why use it?
VS Code can cycle through tabs, but it does not provide a built-in way to move only through the editors that still have unsaved changes. Dirty Tab Cycle narrows navigation to the tabs that still need attention.
Commands
| Command |
ID |
Description |
| Dirty Tab Cycle: Next Unsaved Editor |
dirtyTabCycle.cycleForward |
Moves to the next dirty text editor. |
| Dirty Tab Cycle: Previous Unsaved Editor |
dirtyTabCycle.cycleBackward |
Moves to the previous dirty text editor. |
Both commands are available from the Command Palette and can be assigned to keyboard shortcuts.
Suggested keybindings
No default keybindings are installed. Add your own in Keyboard Shortcuts or keybindings.json:
[
{
"key": "alt+]",
"command": "dirtyTabCycle.cycleForward"
},
{
"key": "alt+[",
"command": "dirtyTabCycle.cycleBackward"
}
]
How it behaves
- Scans tabs in visual order, left to right across editor groups.
- Skips editors that do not have unsaved changes.
- Wraps from the last dirty editor back to the first, and vice versa.
- Works with regular text files and untitled text editors.
- Ignores non-text tabs and custom editors.
Typical workflow
- Edit a few files across one or more editor groups.
- Run
Dirty Tab Cycle: Next Unsaved Editor to jump to the next unsaved editor.
- Save, review, or continue editing.
- Run the command again until you have worked through every dirty tab.
Requirements
Known limitations
- The extension targets text editors only. Webviews, terminals, and other non-text tabs are not included.
- The extension does not ship default keybindings because preferred tab navigation shortcuts vary widely between setups.
Release Notes
0.0.1
Development
npm install
npm test
vsce package