Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: add vscode file nesting config to base template
We now have *a lot* of configuration files at the project's root. It would help to have them grouped in the editor.

Many people aren't aware of this feature, so I'm adding a default configuration to the base template to raise awareness.

This is a very rudimentary configuration; only patterns relevant to this project are included. Users can customize it further themselves.

Or they can use a more advanced share configuration like https://github.com/antfu/vscode-file-nesting-config
  • Loading branch information
haoqunjiang committed Oct 11, 2024
commit 04f8efa267c2620cac8dbd170371e693d3669bcc
8 changes: 8 additions & 0 deletions template/base/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
}
}