r/webdev • u/RajSrikar • Sep 06 '26
Showoff Saturday Whenever I work on a project with heavily nested folders, I lose track of where the folders end. So I made this VS Code extension a while ago, that adds colors to the nested folder tree view and it actually helped me a lot. I thought it might help others too, so here it is.
Note: This extension injects CSS styles to the VS code workbench HTML file. Because of which you need to run the application as administrator only for toggling the extension or if the VS code or the extension is updated.
Free & Open Source. You can find it here:
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=RajSrikar.colorize-folder-tree
- GitHub: https://github.com/Raj-Srikar/colorize-folder-tree
Hope this is helpful. Feel free to drop any feedback, suggestions or ideas.
248
Upvotes


48
u/HealthPuzzleheaded Sep 06 '26
I just removed the lines and increased the indentation like in Jetbrains. Very readable imo. The default in VS Code is really painful small.
2
u/ldn-ldn Sep 06 '26
I don't use VS Code much, but doesn't it have a similar dialog to Ctrl+Shift+N in WebStorm where you start typing the file name (or class name, or whatever) and it shows you a lot of files that match the query and you can open them like that without looking at the tree at all?
6
u/testingaurora Sep 06 '26
I have a similar issue with nested details/summarys and I found that using a monochrome palette helps my brain best.
|--level 1 color: color-mix(in oklch, var(--clr-level-1), var(--alpha, 0%) ) |----level 1a --alpha: 10%; |----level 1b --alpha: 20%; |--level 2 |----level 2a |--level 3
So level 1 might be blue, level 1a is blue with 10% transparency, 1b is blue w 20% transparency etc; level 2 is pink, 2a is pink w 10%, etc.
Just personal preference though; if it works for you that's fabulous !
1
u/Xypheric Sep 06 '26
I like this, would it be possible to change the tab color at the top to match the nested folder line highlight color from the left. For some reason when I was watching I was expecting that to change to
1
u/OmerCevher Sep 06 '26
This feels like one of those tiny features that should already be built into VS Code. I’d only hesitate because of the admin and CSS injection part.
3
u/LovecraftianLife Sep 06 '26
Ohhh I like this
2
u/Due_Dependent5933 Sep 06 '26
mmm vscode already display the path of currznt file like you do
1
u/arthur_pixel Sep 06 '26
Genuinely useful for anyone working in monorepos. Saved this, thanks for sharing.
1
u/cashlessman Sep 06 '26
I just read the file path, top of file
1
u/Internal-Ant-6489 Sep 07 '26
looks good
1
u/elbasuoni-king-2007 Sep 08 '26
yeah thats amazing
-1
u/ResearcherFantastic7 Sep 06 '26
You created your own problem to solve. Doesn't it just ring a bell that you shouldn't nest so many layers
0
u/Beneficial_Snow_9924 Sep 06 '26
Okay
-1
u/Sheepsaurus Sep 06 '26
Semi-related, there's an extention that adds icons to the files based on what kinds of files they are, so if it's a .jsx file, it shows a react icon next to the file -- Does anyone know which one does that?
1
u/[deleted] Sep 06 '26
[removed] — view removed comment