Open
Description
In Rust, modules follow a prescribed directory structure that follows one of two patterns:
├── my
│ ├── inaccessible.rs
│ ├── mod.rs <-- the "root" of the `my` module
│ └── nested.rs
├── lib.rs
└── split.rs
OR (the newer and now recommended option)
├── my <-- children of the `my` module are nested in this directory
│ ├── inaccessible.rs
│ └── nested.rs
├── lib.rs
├── my.rs <-- the "root" of the `my` module
└── split.rs
I'd like to configure VS Code to reflect the module structure in the Explorer tree by displaying something like this:
├── lib.rs
├── my.rs
│ ├── inaccessible.rs
│ └── nested.rs
└── split.rs
To that end, I tried adding the following File Nesting pattern to my settings.json
:
But the Explorer tree still shows my <module-name>
directory and <module-name>.rs
file as separate, sibling entries in the tree, instead of nesting the children of the <module-name>
directory under the <module-name>.rs
file.
Metadata
Metadata
Assignees
Labels
No labels