Last active
April 21, 2024 09:07
-
-
Save germanfrelo/0a5a6b9f720ffb5af9facabe56f2aa6f to your computer and use it in GitHub Desktop.
My Visual Studio Code settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[markdown]": { | |
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint", | |
/* | |
1. Indentation of 4 spaces. See: | |
- https://github.com/DavidAnson/vscode-markdownlint/issues/86#issuecomment-579860824 | |
- https://github.com/search?q=org%3Amarkdown-it+path%3Aeditorconfig+md&type=code | |
2. Keep trailing whitespace in order to create hard line breaks. See: | |
- https://code.visualstudio.com/docs/languages/markdown#_keep-trailing-whitespace-in-order-to-create-line-breaks | |
*/ | |
"editor.insertSpaces": true, // (1) | |
"editor.tabSize": 4, // (1) | |
"files.trimTrailingWhitespace": false // (2) | |
}, | |
"[yaml]": { | |
// YAML doesn't support hard tabs (see https://yaml.org/spec/1.2.2/#61-indentation-spaces) | |
"editor.insertSpaces": true, | |
// The YAML spec doesn't mandate a specific number of spaces for indentation; however, two spaces per indentation level is the most widely recommended and used approach (see https://localheinz.com/articles/2023/02/06/indenting-yaml-files/#content-use-two-spaces-of-indentation) | |
"editor.tabSize": 2 | |
}, | |
"breadcrumbs.icons": false, | |
"breadcrumbs.symbolPath": "off", | |
"colorInfo.excludedFields": ["cmyk"], | |
"colorInfo.languages": [ | |
// Default | |
{ "selector": "css", "colors": "css" }, | |
{ "selector": "sass", "colors": "css" }, | |
{ "selector": "scss", "colors": "css" }, | |
{ "selector": "less", "colors": "css" }, | |
// Custom | |
{ "selector": "html", "colors": "css" } | |
], | |
"cSpell.ignorePaths": [ | |
// Default | |
"package-lock.json", | |
"node_modules", | |
"vscode-extension", | |
".git/objects", | |
".vscode", | |
".vscode-insiders", | |
// Custom | |
"package.json", | |
"**/settings.json", | |
"*.config.*" | |
], | |
"cSpell.language": "en,es", | |
// prettier-ignore | |
"cSpell.userWords": ["Stylelint"], | |
"css.enabledLanguages": ["html", "nunjucks"], | |
"css.format.spaceAroundSelectorSeparator": true, | |
"css.lint.compatibleVendorPrefixes": "warning", | |
"css.lint.duplicateProperties": "warning", | |
"css.lint.idSelector": "warning", | |
"css.lint.ieHack": "error", | |
"css.lint.unknownAtRules": "error", | |
"css.lint.unknownProperties": "error", | |
"css.lint.unknownVendorSpecificProperties": "error", | |
"css.lint.vendorPrefix": "error", | |
"css.lint.zeroUnits": "warning", | |
"debug.allowBreakpointsEverywhere": true, | |
"debug.confirmOnExit": "always", | |
"debug.internalConsoleOptions": "openOnSessionStart", | |
"debug.onTaskErrors": "showErrors", | |
"debug.openDebug": "openOnSessionStart", | |
"debug.openExplorerOnEnd": true, | |
"debug.showBreakpointsInOverviewRuler": true, | |
"debug.showInStatusBar": "always", | |
"debug.showSubSessionsInToolBar": true, | |
"debug.toolBarLocation": "docked", | |
"diffEditor.experimental.showMoves": true, | |
"diffEditor.hideUnchangedRegions.enabled": true, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.accessibilitySupport": "off", | |
/* | |
Code Actions on Save (v1.88): | |
- As array, the ordering of actions is respected. | |
- As object, "source.fixAll" actions are prioritized and are executed first. | |
References: | |
- https://code.visualstudio.com/docs/languages/javascript#_code-actions-on-save | |
- https://github.com/microsoft/vscode/blob/1.88.0/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts#L300-L332 | |
*/ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": "explicit", | |
// "source.fixAll.markdownlint": "explicit", | |
"source.fixAll.stylelint": "explicit", | |
// "source.fixAll": "explicit", | |
"source.addMissingImports": "explicit", | |
"source.sortImports": "explicit" | |
// "source.organizeImports": "explicit", | |
}, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.cursorSurroundingLines": 3, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.detectIndentation": false, | |
"editor.dragAndDrop": false, | |
"editor.find.autoFindInSelection": "multiline", | |
"editor.find.globalFindClipboard": true, | |
"editor.fontFamily": "'JetBrains Mono'", | |
"editor.fontLigatures": false, | |
"editor.fontSize": 13, | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, | |
"editor.guides.bracketPairs": "active", | |
"editor.inlayHints.enabled": "offUnlessPressed", | |
"editor.inlayHints.padding": true, | |
"editor.insertSpaces": false, | |
"editor.linkedEditing": true, | |
"editor.minimap.maxColumn": 50, | |
"editor.minimap.size": "fit", | |
"editor.renderLineHighlight": "all", | |
"editor.renderWhitespace": "boundary", | |
"editor.smoothScrolling": true, | |
"editor.stickyScroll.enabled": true, | |
"editor.stickyTabStops": true, | |
"editor.suggest.preview": true, | |
"editor.suggest.showStatusBar": true, | |
"editor.tabSize": 4, | |
"editor.wordBasedSuggestions": "off", | |
"editor.wordWrap": "on", | |
"explorer.fileNesting.enabled": true, | |
"extensions.autoUpdate": "onlyEnabledExtensions", | |
"files.eol": "\n", | |
"files.insertFinalNewline": true, | |
"files.trimFinalNewlines": true, | |
"files.trimTrailingWhitespace": true, | |
"git.autofetch": true, | |
"git.enableCommitSigning": true, | |
"git.inputValidation": true, | |
"git.untrackedChanges": "separate", | |
"github.branchProtection": true, | |
"githubPullRequests.focusedMode": "overview", | |
"gitlens.views.branches.branches.layout": "list", | |
"gitlens.views.contributors.files.layout": "list", | |
"html.format.extraLiners": "body", | |
"html.format.indentHandlebars": true, | |
"html.format.indentInnerHtml": true, | |
"html.format.templating": true, | |
"html.format.wrapAttributes": "force-expand-multiline", | |
"html.format.wrapLineLength": 80, | |
"javascript.format.semicolons": "insert", | |
"javascript.inlayHints.enumMemberValues.enabled": true, | |
"javascript.inlayHints.functionLikeReturnTypes.enabled": true, | |
"javascript.inlayHints.parameterNames.enabled": "all", | |
"javascript.inlayHints.parameterTypes.enabled": true, | |
"javascript.inlayHints.propertyDeclarationTypes.enabled": true, | |
"javascript.inlayHints.variableTypes.enabled": true, | |
"javascript.referencesCodeLens.enabled": true, | |
"javascript.suggest.completeFunctionCalls": true, | |
"javascript.suggest.names": false, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"markdown.editor.pasteUrlAsFormattedLink.enabled": "smart", | |
"markdown.updateLinksOnFileMove.enabled": "always", | |
"markdown.validate.enabled": true, | |
"prettier.tabWidth": 4, | |
"prettier.useTabs": true, | |
"scss.format.spaceAroundSelectorSeparator": true, | |
"scss.lint.compatibleVendorPrefixes": "warning", | |
"scss.lint.duplicateProperties": "warning", | |
"scss.lint.idSelector": "warning", | |
"scss.lint.ieHack": "error", | |
"scss.lint.unknownAtRules": "error", | |
"scss.lint.unknownProperties": "error", | |
"scss.lint.unknownVendorSpecificProperties": "error", | |
"scss.lint.vendorPrefix": "error", | |
"scss.lint.zeroUnits": "warning", | |
"search.searchEditor.doubleClickBehaviour": "selectWord", | |
"telemetry.telemetryLevel": "error", | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.integrated.cursorBlinking": true, | |
"terminal.integrated.cursorStyle": "line", | |
"terminal.integrated.fontFamily": "'MesloLGS NF'", | |
"terminal.integrated.lineHeight": 1.2, | |
"terminal.integrated.stickyScroll.enabled": true, | |
"typescript.inlayHints.enumMemberValues.enabled": true, | |
"typescript.inlayHints.functionLikeReturnTypes.enabled": true, | |
"typescript.inlayHints.parameterNames.enabled": "all", | |
"typescript.inlayHints.parameterTypes.enabled": true, | |
"typescript.inlayHints.propertyDeclarationTypes.enabled": true, | |
"typescript.inlayHints.variableTypes.enabled": true, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"window.autoDetectColorScheme": true, | |
"window.commandCenter": true, | |
"window.dialogStyle": "custom", | |
"workbench.colorTheme": "Default Light Modern", | |
"workbench.editor.highlightModifiedTabs": true, | |
"workbench.editor.pinnedTabsOnSeparateRow": true, | |
"workbench.editor.wrapTabs": true, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.list.smoothScrolling": true, | |
"workbench.tree.enableStickyScroll": true, | |
"workbench.tree.indent": 16, | |
"workbench.tree.renderIndentGuides": "always" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs: VS Code settings.json.