Replies: 1 comment
-
Explorer > File Nesting can be found in Or in
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just enabled File Nesting in VSCode, and thought I'd share. It is a feature that visually groups related files together under a single parent file in the Explorer pane.
Steps
To nest
+page.js
(or+page.ts
) and+page.server.js
(or+page.server.ts
) under a+page.svelte
file, if they exist:Enable Explorer > File Nesting
Add the following in Explorer > File Nesting : Patterns
Item:
+*.svelte
Value:
+${capture}.js, +${capture}.server.tjs, +${capture}.ts, +${capture}.server.ts
This will also do the same for other files that start match the pattern
+*.svelte
, so will work with+layout.svelte
files too.Beta Was this translation helpful? Give feedback.
All reactions