Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created March 21, 2024 15:44
Show Gist options
  • Save wesbos/f8ca276e2bf2c933b18dbd661a5802c6 to your computer and use it in GitHub Desktop.
Save wesbos/f8ca276e2bf2c933b18dbd661a5802c6 to your computer and use it in GitHub Desktop.
"workbench.editor.customLabels.patterns": {
"**/routes/**/+page.svelte": "${dirname(1)}/${dirname}",
"**/routes/**/+page.server.ts": "/${dirname} [server]",
"**/app/**/page.tsx": "${dirname}.${extname}",
"**/app/**/layout.tsx": "${dirname}/layout.${extname}"
}
@niemyjski
Copy link

Thanks for posting this. I am building a svelte SPA app (https://github.com/exceptionless/Exceptionless) and I've found this to work really well.

"workbench.editor.customLabels.patterns": {
    "**/routes/**/+page.svelte": "${dirname(1)}/${dirname}",
    "**/routes/**/+layout.svelte": "${dirname}/+layout.svelte",
    "**/lib/**/index.ts": "${dirname}/index.ts",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment