Color the tab labels of non-workspace files, user configuration files, the Settings editor, extension pages, and untitled editors via file decorations.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Colors the tab labels of the editors below via a FileDecorationProvider —
the same mechanism as Git decorations (gray for ignored files, modified color, etc.),
so it coexists with them peacefully:
Files outside the current workspace (file scheme, not under any workspace folder)
Files inside a .git directory (file scheme, any .git path segment)
User configuration files: user-scope settings.json and keybindings.json (vscode-userdata scheme)
Each category can be toggled independently; all default to enabled:
fileDecorationProvider.decorate.nonWorkspaceFiles
fileDecorationProvider.decorate.gitInternals
fileDecorationProvider.decorate.userData
fileDecorationProvider.decorate.settingsEditor
fileDecorationProvider.decorate.extensionPages
fileDecorationProvider.decorate.untitled
Requirements and limitations
Tab coloring requires workbench.editor.decorations.colors to be enabled;
to also take effect in the Explorer, explorer.decorations.colors is required as well
Problems decorations (error red, warning yellow) have higher priority and override this extension's colors
The Keyboard Shortcuts GUI editor has no resource URI inside VS Code (resource = undefined),
so no decoration mechanism can color it; keybindings.json opened as JSON belongs to vscode-userdata and is colored normally
With no folder open (an empty window), file scheme files are not dimmed as "non-workspace"