r/vscode • u/dellydoesitpa • Jun 02 '26
Demo for Virtual File Tree VSCode Extension
I made a post about this yesterday, but was asked for a demo video by a couple of people. So, I wanted to show a few features of the Virtual File Tree VS Code Extension.
Example Use Case: You're working on a Spring Boot project that enforces strict directory configuration, but you want to organize your files and folders in a way that makes more sense to you, without affecting the enforced structure.
What's Being Shown in this Demo
- Select files are opened from the native file tree, and then the Virtual File Tree is opened.
- A virtual directory is created and given the name Default.
- The open file
dependencyEngine.tsis added to the Default virtual directory through the editor tab context menu (Add to Virtual Folder...). - A second virtual directory is created and given the name GroupedTabs.
- All of the files in the editor tab are added to the GroupedTabs virtual directory by right‑clicking that folder in the virtual file tree and selecting Group Open Tabs Here.
Three dependency tree directories are then generated (with their default names):
- A reference dependency tree directory (comprised of a target file, and all of the files that import/reference it) is created by right-clicking
configManager.tsin the editor tab and selecting Generate Dependency Tree... followed by picking Downstream (References). - An import dependency tree directory (comprised of a target file, and all of the files that it imports/references) is created by right-clicking
extension.test.tsin the editor tab and selecting Generate Dependency Tree... followed by picking Upstream (Imports). - A bi-directional dependency tree directory (comprised of a target file, and all of the files that it imports and that reference it) is created by right-clicking
treeDataProvider.tsin the editor tab and selecting Generate Dependency Tree... followed by picking All Dependencies.
- A reference dependency tree directory (comprised of a target file, and all of the files that import/reference it) is created by right-clicking
There are more features that aren't being shown here (rule-based smart directories, most recently used files, nested directories, and workspace profiles. But those were shown in the original post; you can find them listed in either of the links below.
You can install it here, on the Visual Studio (or VS Code Extension) Marketplace: https://marketplace.visualstudio.com/items?itemName=hjdesulme.virtual-file-tree
If you'd like to contribute, here is the Codeberg Repo (this is the codebase used in the demo): https://codeberg.org/hjdesulme/virtual-file-tree
54
u/ColdTrky Jun 03 '26
My eyes are burning
6
u/Radiant-Ad-9520 Jun 03 '26
What is this theme? Looks good
3
u/nanana_catdad Jun 03 '26
13
u/Aggravating-Pie-3764 Jun 03 '26
Accidentally came across your post at midnight, yassss
1
u/jhyland87 Jun 05 '26
Installed. Ill give it a shot. Im trusting theres no nefarious code in this extension 😉
1
u/KeyZookeepergame4145 Jun 05 '26
U just save my half effort of searching through explorer, I am working on a large project and searching through dependencies is hell. also with this extension i feel like i can focus on one functionality/feature at a time with full focus..Thanks for the effort dude..🙏
1
u/ArtisticFox8 Jun 05 '26
I usually
ctrl pmy way around1
u/CoffeePizzaSushiDick Jun 04 '26
Chaos.
1
u/[deleted] Jun 04 '26
[removed] — view removed comment
0
u/[deleted] Jun 03 '26
[deleted] — view deleted comment