File Marks ExplorerColour your files and folders in the VS Code Explorer. Right-click → Mark — pick a colour, a tag and a note. Marks are stored globally, so they follow you into every project.
Why
InstallFrom the Extensions view (
Also on Open VSX for VSCodium, Cursor and Gitpod. Use itRight-click a file or folder in the Explorer (or an editor tab) → Mark:
Everything is also in the Command Palette under The eight presets that ship with it — 📌 TODO, ⭐ Important, 🚧 In progress, ✅ Done, 💥 Broken,
🚫 Do not touch, ❓ Question, 🗄 Archive — are only a starting point. Replace them with your own
workflow through Lines, not just filesSelect some code, right-click the line numbers → Mark Lines → Colour…:
The lines get a stripe in that colour where the numbers end, and a tick in the overview ruler so you can find them from anywhere in the file. The code itself is left alone — nothing is highlighted or recoloured:
Right-clicking a line number inside a selection marks the whole selection; right-clicking outside one marks that single line. All three are in the Command Palette too, where they work on whatever is selected. Marks follow the text while you edit: everything below an insertion or a deletion moves with it, and a mark on a line you delete goes away with the line. Edits made outside VS Code are not seen — marks are stored by line number, not by content — so a file rewritten by another tool can end up with its stripes a few lines off. Clearing the mark of a file leaves the lines inside it alone; they are separate work. Delete All Marks removes both. KeybindingsOne press. They act on the file open in the editor, and on the Explorer selection while the Explorer has focus.
Press the same shortcut again and the mark comes off, so The shortcuts are bound to key positions ( Bind your own
With no Settings
Change the colours to your own:
Available ids: Good to knowA tag is 1–2 characters — one emoji counts as one, so That is not our choice. VS Code gives the spot next to a file name exactly two characters and rejects anything longer — the badge is not truncated for you, the whole decoration is thrown away and the file loses its colour as well. Use the hover note for anything that needs words. Git colours. VS Code keeps the colour of whichever extension registered last, so File Marks re-registers itself after Git has started. If a colour still gets overridden, run File Marks: Give Marks Priority Over Git Colours. On a folder containing changed files, Git replaces the badge with a grey dot; the mark colour stays. Problem markers (errors, warnings) always win — turn them off if marks must be unconditionally visible:
The Explorer selection behind a keybinding. VS Code exposes no API for what is selected in the
Explorer. The shortcuts read it through the built-in Copy Path command and put the clipboard back
immediately afterwards — set Renames made inside VS Code carry the mark along, folders included. Changes made outside the editor do not — use File Marks: Remove Marks of Missing Files to clean up. Backup. Export / Import Marks moves everything to another machine. Marks live in one JSON file in the extension's global storage; nothing is written into your projects. ContributingBugs and ideas are welcome in the issues,
pull requests just as much. Plain JavaScript, no build step: clone it, Licence |


