Skip to content

Instantly share code, notes, and snippets.

@dofy
Last active October 26, 2024 15:08
Show Gist options
  • Save dofy/8f699aca933a11b4dadec48ab5b8b486 to your computer and use it in GitHub Desktop.
Save dofy/8f699aca933a11b4dadec48ab5b8b486 to your computer and use it in GitHub Desktop.
vscode-user-settings_workbench.editor.customLabels.patterns.json
{
"workbench.editor.customLabels.patterns": {
// Next.js
"**/app/**/page.tsx": "๐Ÿ“„ ${dirname}",
"**/app/**/layout.tsx": "๐Ÿ—๏ธ ${dirname}",
"**/app/**/route.ts": "๐Ÿ›ฃ๏ธ ${dirname}",
"**/app/**/loading.tsx": "โณ ${dirname}",
"**/app/**/error.tsx": "โŒ ${dirname}",
"**/pages/**/index.tsx": "๐Ÿ  ${dirname(1)} / ${dirname(0)}",
"**/pages/**/*.tsx": "๐Ÿก ${dirname(0)} / ${filename}",
"**/pages/**/_app.tsx": "๐ŸŒŸ _app",
"**/pages/**/api/**/*.ts": "๐Ÿ”Œ ${dirname}",
// React
"**/components/**/index.{jsx,tsx}": "๐Ÿงฉ ${dirname}",
"**/components/**/*.{jsx,tsx}": "๐Ÿงฉ ${filename}",
"**/hooks/**/*.{js,ts}": "๐ŸŽฃ ${filename}",
"**/context/**/*.{js,ts,jsx,tsx}": "๐ŸŒ ${filename}",
"**/redux/**/*.{js,ts}": "๐Ÿ”„ ${filename}",
// React Native
"**/screens/**/*.{jsx,tsx}": "๐Ÿ“ฑ ${dirname}",
"**/navigation/**/*.{jsx,tsx}": "๐Ÿงญ ${filename}",
// Flutter
"**/lib/screens/**/*.dart": "๐Ÿ“ฑ ${dirname}",
"**/lib/widgets/**/*.dart": "๐Ÿงฉ ${filename}",
"**/lib/models/**/*.dart": "๐Ÿ“Š ${filename}",
"**/lib/services/**/*.dart": "๐Ÿ”ง ${filename}",
"**/pubspec.yaml": "๐Ÿ“ฆ pubspec.yaml",
// Vite
"vite.config.{js,ts}": "โšก vite.config",
// ้€š็”จ
"**/styles/**/*.{css,scss,less}": "๐ŸŽจ ${filename}",
"**/utils/**/*.{js,ts}": "๐Ÿ› ๏ธ ${filename}",
"**/types/**/*.{ts,d.ts}": "๐Ÿ“ ${filename}",
"**/tests/**/*.{test,spec}.{js,ts,jsx,tsx}": "๐Ÿงช ${filename}",
"**/assets/**/*": "๐Ÿ–ผ๏ธ ${filename}",
"**/public/**/*": "๐ŸŒ ${filename}",
"**/index.{js,ts,jsx,tsx}": "๐Ÿ“ฆ ${dirname}",
// ้…็ฝฎๆ–‡ไปถ
"**/package.json": "๐Ÿ“ฆ package.json",
"**/tsconfig.json": "โš™๏ธ tsconfig.json",
"**/.env*": "๐Ÿ” ${filename}",
"**/app.json": "๐Ÿ“ฑ app.json",
"**/.gitignore": "๐Ÿ™ˆ .gitignore",
"**/README.md": "๐Ÿ“š README.md"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment