Skip to content

Instantly share code, notes, and snippets.

@tutods
Last active January 28, 2024 16:31
Show Gist options
  • Save tutods/356012522fd86c7795272ff5aac97fef to your computer and use it in GitHub Desktop.
Save tutods/356012522fd86c7795272ff5aac97fef to your computer and use it in GitHub Desktop.
settings.json
{
// Remove command center
"window.commandCenter": false,
// Workbench
"workbench.settings.editor": "json",
"workbench.editor.labelFormat": "short",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.empty.hint": "hidden", // TODO: check
// "workbench.activityBar.location": "hidden", - I prefer to use the icons on bottom
"workbench.statusBar.visible": false,
"workbench.layoutControl.enabled": false,
// Theme & Icons
"workbench.colorTheme": "Min Dark",
"workbench.iconTheme": "symbols",
"workbench.productIconTheme": "fluent-icons",
// Fonts
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"terminal.integrated.fontFamily": "JetBrainsMonoNL Nerd Font",
"terminal.integrated.fontSize": 14,
// Editor
"editor.rulers": [
80,
120
],
"editor.suggestSelection": "first",
"editor.parameterHints.enabled": false,
"editor.renderLineHighlight": "gutter",
"editor.semanticHighlighting.enabled": false,
"editor.minimap.enabled": false,
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.horizontal": "hidden",
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.rename.enablePreview": true,
"editor.wordWrap": "on", // TODO: check
// Brackets pair colorization
"editor.bracketPairColorization.enabled": true,
// Auto closing settings
"editor.autoClosingQuotes": "always",
"editor.autoClosingBrackets": "always",
// Prevent compacted folders
"explorer.compactFolders": false,
// Confirm dragging
"explorer.confirmDragAndDrop": false,
// File nesting
"explorer.fileNesting.enabled": true,
"explorer.sortOrder": "foldersNestsFiles",
"explorer.fileNesting.patterns": {
"tailwind.config.*": "tailwind.config*, postcss.config*",
".eslint*": ".eslintrc*, .eslintignore",
".prettierrc*": "prettier.config*, .prettierignore",
"prettier.config*": ".prettierrc*,.prettierignore",
".env.local": ".env*",
".env": ".env*",
// "*.ts": "${capture}.js",
// "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
// "*.jsx": "${capture}.js",
// "*.tsx": "${capture}.ts",
"tsconfig.json": "tsconfig.*.json",
"package.json": "package-lock.json, yarn.lock, pnpm-lock*, bun.lockb"
},
// Symbols
"symbols.files.associations": {
"*.module.ts": "nest",
"*.guard.ts": "typescript",
"*.spec.ts": "ts-test",
"*.e2e-spec.ts": "ts-test",
"vitest.config.e2e.ts": "vite",
".env.example": "gear"
},
"symbols.hidesExplorerArrows": false,
// Screencast mode
"screencastMode.onlyKeyboardShortcuts": true,
"screencastMode.fontSize": 32,
// Remove breadcrumbs
"breadcrumbs.enabled": false,
// ACP customization
"window.titleBarStyle": "native",
"apc.electron": {
"titleBarStyle": "hiddenInset",
"trafficLightPosition": {
"x": 11,
"y": 10
},
"frame": false
},
"apc.header": {
"height": 36
},
"apc.font.family": "Inter",
"apc.monospace.font.family": "JetBrains Mono",
"apc.stylesheet": {
".title-label > h2": "display: none",
".editor-actions": "display: none",
".pane-body": "padding: 8px",
".pane-header": "padding: 0 8px",
".split-view-view:first-child .pane-header": "display: none !important;",
".monaco-list-row": "border-radius: 4px;",
".monaco-workbench .monaco-list:not(.element-focused):focus:before": "display: none;"
},
"apc.listRow": {
"height": 24,
},
"apc.activityBar": {
"position": "bottom",
"hideSettings": true,
"size": 48,
"itemMargin": 8,
"itemSize": 32
},
// Autosave
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
// Disable sounds
"editor.accessibilitySupport": "off",
// Javascript settings
"javascript.autoClosingTags": true,
"javascript.preferences.jsxAttributeCompletionStyle": "auto",
"javascript.updateImportsOnFileMove.enabled": "always",
"javascript.preferences.renameMatchingJsxTags": true,
"javascript.suggest.autoImports": true,
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[javascriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
// Typescript settings
"typescript.autoClosingTags": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.jsxAttributeCompletionStyle": "auto",
"typescript.preferences.renameMatchingJsxTags": true,
"typescript.suggest.autoImports": true,
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
// JSON
"[jsonc]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Prisma
"[prisma]": {
"editor.formatOnSave": true
},
// ESLint
"eslint.validate": [
"javascript",
"javascriptreact",
"graphql",
"typescript",
"typescriptreact"
],
// Console ninja
"console-ninja.featureSet": "Community",
// Git
"git.autofetch": true,
"git.enableSmartCommit": true,
"git.confirmEmptyCommits": true,
"git.fetchOnPull": true,
"git.openRepositoryInParentFolders": "always",
// Files
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
".vscode": true
},
// Emmet
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
// Spell Checker
"cSpell.language": "pt-PT,en",
"cSpell.userWords": [
"tailwindcss",
"trpc",
"trpc",
"tsup",
"prefetch",
"nestjs",
"middlewares",
"Dotenv",
"fastify",
"Fastify"
],
// Files associations
"files.associations": {
".env*": "dotenv",
".prettierrc*": "json",
},
// Close extensions tabs when change to other view
"extensions.closeExtensionDetailsOnViewChange": true,
// Tailwind CSS
"tailwindCSS.experimental.classRegex": [], // TODO: add cva regex
// To organize
"security.workspace.trust.untrustedFiles": "newWindow",
"update.mode": "start",
"explorer.openEditors.minVisible": 0,
"terminal.integrated.env.osx": {},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment