]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
feat: add vscode file nesting config to base template
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 11 Oct 2024 08:46:09 +0000 (16:46 +0800)
committerCédric Exbrayat <cexbrayat@users.noreply.github.com>
Fri, 11 Oct 2024 09:49:08 +0000 (11:49 +0200)
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

template/base/.vscode/settings.json [new file with mode: 0644]

diff --git a/template/base/.vscode/settings.json b/template/base/.vscode/settings.json
new file mode 100644 (file)
index 0000000..985128a
--- /dev/null
@@ -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"
+  }
+}