Skip to content

Instantly share code, notes, and snippets.

@spartanatreyu
Last active November 29, 2023 07:04
Show Gist options
  • Save spartanatreyu/c55102378ff08966b9a08935b1619f3a to your computer and use it in GitHub Desktop.
Save spartanatreyu/c55102378ff08966b9a08935b1619f3a to your computer and use it in GitHub Desktop.
Personal vscode settings.json
{
// Theme customisation
"workbench.colorTheme": "Monokai",
"editor.showFoldingControls": "always",
"editor.cursorSurroundingLines": 5,
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all", //if you want it, check how it looks with rainbow-indent
"trailing-spaces.includeEmptyLines": false,
"trailing-spaces.highlightCurrentLine": false,
// "editor.guides.bracketPairs": "active", // Is only worth setting to true when files use one open bracket per indentation level
// "editor.guides.bracketPairsHorizontal": "active", // Is only worth setting to true when files use one open bracket per indentation level
"workbench.colorCustomizations": {
// Set the same color as the background, so it only draws over the currently selected line
"editorRuler.foreground": "#272822",
// Set bracket colors to match the rainbow indent extension's colours
"editorBracketHighlight.foreground1": "#ffff40",
"editorBracketHighlight.foreground2": "#7fff7f",
"editorBracketHighlight.foreground3": "#ff7fff",
"editorBracketHighlight.foreground4": "#4fecec",
"editorBracketHighlight.unexpectedBracket.foreground": "#ff0000"
},
"emmet.useInlineCompletions": true,
"editor.inlayHints.fontSize": 10,
"editor.inlayHints.enabled": "onUnlessPressed",
"errorLens.fontFamily": "Verdana",
"errorLens.fontSize": "0.7rem",
"javascript.inlayHints.propertyDeclarationTypes.enabled": true,
"javascript.inlayHints.enumMemberValues.enabled": true,
"javascript.inlayHints.functionLikeReturnTypes.enabled": true,
"javascript.inlayHints.parameterNames.enabled": "literals",
"javascript.inlayHints.parameterTypes.enabled": true,
"javascript.inlayHints.variableTypes.enabled": true,
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "literals",
"typescript.inlayHints.parameterTypes.enabled": true,
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
"typescript.inlayHints.variableTypes.enabled": true,
// UI visuals customisation
"editor.rulers": [100],
"editor.minimap.showSlider": "always",
"editor.unfoldOnClickAfterEndOfLine": true,
"debug.showBreakpointsInOverviewRuler": true,
"problems.showCurrentInStatus": true,
"gremlins.showInProblemPane": true,
"scm.diffDecorationsGutterPattern": {
"modified": false
},
"git.untrackedChanges": "separate",
"terminal.integrated.fontFamily": "MesloLGS NF",
"workbench.editor.pinnedTabSizing": "compact",
"workbench.editor.decorations.badges": true,
"workbench.editor.decorations.colors": true,
// Editor customisation
"editor.insertSpaces": false,
"editor.trimAutoWhitespace": false,
"explorer.confirmDelete": false,
"workbench.startupEditor": "readme",
"svg.preview.mode": "svg",
"editor.accessibilitySupport": "off",
"editor.linkedEditing": true, // "Mirror cursor" / "Synced Regions" / On Type Rename / Linked Editing feature, useful for html
"editor.suggestSelection": "first",
"editor.suggest.preview": true,
"emmet.triggerExpansionOnTab": true,
"editor.copyWithSyntaxHighlighting": false,
"search.exclude": {
"**/node_modules": false,
"**/bower_components": false,
},
"terminal.integrated.wordSeparators": " ()[]{}',\"`─_", // Added underscore "_" character
"editor.formatOnSaveMode": "modifications", // If vscode is set to format when saving, it will only format the code that has been modified, instead of reformatting the entire file
// Language customisation
"files.associations": {
"*.html": "html"
},
//// Markdown
"markdown.validate.enabled": true,
"markdownlint.config": {
"MD007": { "indent": 1 }, // default indent width in lists is 1 character, use a tab for this
"MD010": false, // allow tab characters
"MD013": false, // remove 80 character line width requirement
"MD024": { "siblings_only": true }, // Allows for changelog-like markdown files where multiple releases can contain the same title like `### Features`
"MD046": { "style": "fenced" }
},
//// JS / TS
"eslint.alwaysShowStatus": true,
"javascript.referencesCodeLens.showOnAllFunctions": true,
"javascript.referencesCodeLens.enabled": true,
"typescript.referencesCodeLens.showOnAllFunctions": true,
"typescript.implementationsCodeLens.enabled": true,
"typescript.referencesCodeLens.enabled": true,
//// Language PHP only rules
//// These rules are for laravel based projects, they use a lot of reflection and other techniques to make code less verbose for developers with the side effect of making it harder for IDEs to tell exactly what's going on.
"intelephense.diagnostics.undefinedTypes": false,
"intelephense.diagnostics.undefinedFunctions": false,
"intelephense.diagnostics.undefinedConstants": false,
"intelephense.diagnostics.undefinedClassConstants": false,
"intelephense.diagnostics.undefinedMethods": false,
"intelephense.diagnostics.undefinedProperties": false,
"intelephense.diagnostics.undefinedVariables": false,
// Spell check settings
"cSpell.language": "en,en-GB,lorem",
"cSpell.userWords": [
"AIIFE",
"Allman",
"Andrey",
"contenteditable",
"cssnano",
"datetime",
"firstname",
"frontmatter",
"Greenlight",
"gsed",
"headful",
"headlessly",
"hyperthreading",
"iframes",
"Jayden",
"Klyp",
"laravel",
"lastname",
"localdev",
"mailhog",
"mainmenu",
"memberportal",
"myobrace",
"Myofunctional",
"myoresearch",
"Myosa",
"NOSONAR",
"octobercms",
"opencart",
"Pearse",
"Queenie",
"Styleguide",
"unescaping",
"unstaged",
"vhosts",
"VQMOD"
],
// this rule below is just here to make new settings that are automatically added to this file, appear below this comment
"UNSORTED-CUSTOMISATIONS-GO-BELOW": true,
"editor.cursorBlinking": "smooth",
"[twig]": {},
"cSpell.enabled": false,
"editor.stickyScroll.enabled": true,
"files.readonlyFromPermissions": true,
"files.readonlyInclude": {
"**/node_modules/**": true,
"**/vendor/**": true
},
"php.validate.executablePath": "/usr/local/bin/php",
"intelephense.environment.phpVersion": "8.2.7",
"window.commandCenter": false,
"workbench.editor.empty.hint": "hidden",
"editor.multiDocumentOccurrencesHighlight": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment