Skip to content

Instantly share code, notes, and snippets.

@hungify
Last active July 15, 2024 14:56
Show Gist options
  • Save hungify/27e92a2c8162b89332c184e1e74af1c7 to your computer and use it in GitHub Desktop.
Save hungify/27e92a2c8162b89332c184e1e74af1c7 to your computer and use it in GitHub Desktop.
Visual studio code configurations

Extensions

antfu.goto-alias
antfu.iconify
antfu.unocss
astro-build.astro-vscode
biomejs.biome
bradlc.vscode-tailwindcss
chakrounanas.turbo-console-log
cipchk.cssrem
csstools.postcss
davidanson.vscode-markdownlint
dbaeumer.vscode-eslint
drcika.apc-extension
eamodio.gitlens
editorconfig.editorconfig
esbenp.prettier-vscode
fabian-hiller.pace-theme
formulahendry.auto-close-tag
github.copilot
github.copilot-chat
jock.svg
mhutchie.git-graph
miguelsolorio.fluent-icons
naumovs.color-highlight
oven.bun-vscode
phoenisx.cssvar
pkief.material-icon-theme
rust-lang.rust-analyzer
shd101wyy.markdown-preview-enhanced
stivo.tailwind-fold
streetsidesoftware.code-spell-checker
stylelint.vscode-stylelint
tamasfe.even-better-toml
usernamehw.errorlens
vadimcn.vscode-lldb
visualstudioexptteam.vscodeintellicode
vue.volar
yoavbls.pretty-ts-errors

Settings

{
  "workbench.sideBar.location": "right",
  "window.nativeTabs": true,
  "window.titleBarStyle": "native",
  "window.customTitleBarVisibility": "never",
  "apc.electron": {
    "titleBarStyle": "hidden"
  },
  "apc.activityBar": {
    "position": "bottom",
    "hideSettings": true,
    "size": 24
  },
  "apc.listRow": {
    "height": 25,
    "fontSize": 12
  },
  "apc.statusBar": {
    "position": "editor-bottom",
    "height": 25,
    "fontSize": 10
  },
  "apc.header": {
    "height": 30,
    "fontSize": 10
  },
  "apc.parts.font.family": {
    "sidebar": "MonoLisa",
    "titlebar": "MonoLisa",
    "activityBar": "MonoLisa",
    "panel": "MonoLisa",
    "tabs": "MonoLisa",
    "statusbar": "MonoLisa",
    "settings-body": "MonoLisa",
    "extension-editor": "MonoLisa",
    "monaco-menu": "MonoLisa"
  },

  "window.commandCenter": true,
  "workbench.layoutControl.enabled": false,
  "workbench.list.horizontalScrolling": true,
  "workbench.preferredLightColorTheme": "Pace Light+",
  "workbench.preferredHighContrastLightColorTheme": "Pace Light++",
  "workbench.preferredHighContrastColorTheme": "Pace Dark",
  "workbench.preferredDarkColorTheme": "Pace Dark",
  "workbench.colorTheme": "Pace Light+",
  "workbench.activityBar.location": "bottom",
  "window.autoDetectColorScheme": true,
  "apc.imports": [
    "/Users/hungify/Library/Application Support/Code/User/styles.css"
  ],
  "workbench.iconTheme": "material-icon-theme",
  "explorer.sortOrder": "type",
  "workbench.fontAliasing": "antialiased",
  "workbench.list.smoothScrolling": true,
  "workbench.tree.expandMode": "singleClick",
  "workbench.tree.indent": 10,
  "workbench.colorCustomizations": {
    "editorBracketPairGuide.background1": "#FFB86C",
    "editorBracketPairGuide.background2": "#FF75B5",
    "editorBracketPairGuide.background3": "#45A9F9",
    "editorBracketPairGuide.background4": "#B084EB",
    "editorBracketPairGuide.background5": "#E6E6E6",
    "editorBracketPairGuide.background6": "#19f9d8",
    "editorBracketPairGuide.activeBackground1": "#FFB86C",
    "editorBracketPairGuide.activeBackground2": "#FF75B5",
    "editorBracketPairGuide.activeBackground3": "#45A9F9",
    "editorBracketPairGuide.activeBackground4": "#B084EB",
    "editorBracketPairGuide.activeBackground5": "#E6E6E6",
    "editorBracketPairGuide.activeBackground6": "#19f9d8",
    "tree.indentGuidesStroke": "#19f9d8",
    "tab.activeBorderTop": "#FF75B5"
  },
  "workbench.tree.renderIndentGuides": "always",
  "workbench.editor.wrapTabs": true,
  "workbench.editor.tabSizing": "shrink",
  "workbench.editor.closeOnFileDelete": true,
  "workbench.editor.highlightModifiedTabs": true,
  "workbench.editor.limit.enabled": true,
  "workbench.editor.limit.perEditorGroup": true,
  "workbench.editor.limit.value": 5,
  "workbench.tree.enableStickyScroll": true,
  // Editor
  "editor.inlineSuggest.enabled": true,
  "editor.lineNumbers": "on",
  "editor.suggest.insertMode": "replace",
  "editor.suggestFontSize": 14,
  "editor.cursorSurroundingLines": 5,
  "editor.minimap.enabled": false,
  "editor.linkedEditing": true,
  "editor.fontFamily": "MonoLisa, Monaspace Neon, monospace",
  "editor.fontWeight": "500",
  "editor.fontLigatures": "'calt', 'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08'",
  "editor.wordWrap": "wordWrapColumn",
  "editor.wordWrapColumn": 100,
  "editor.mouseWheelScrollSensitivity": 1,
  "editor.lineHeight": 25,
  "editor.letterSpacing": 0.4,
  "editor.cursorWidth": 4,
  "editor.cursorBlinking": "expand",
  "editor.cursorStyle": "line",
  "editor.fontSize": 15,
  "editor.renderLineHighlight": "gutter",
  "editor.suggest.preview": true,
  "editor.formatOnSave": true,
  "editor.formatOnPaste": true,
  "editor.smoothScrolling": true,
  "editor.formatOnType": false,
  "editor.bracketPairColorization.enabled": true,
  "editor.wordBasedSuggestions": "matchingDocuments",
  "editor.quickSuggestionsDelay": 5,
  "editor.renderControlCharacters": true,
  "editor.quickSuggestions": {
    "comments": "on",
    "strings": "on",
    "other": "on"
  },
  "editor.acceptSuggestionOnEnter": "smart",
  "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
  "editor.guides.highlightActiveIndentation": true,
  "editor.gotoLocation.multipleDefinitions": "goto",
  "editor.accessibilitySupport": "off",
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.find.addExtraSpaceOnTop": false,
  "editor.guides.bracketPairs": "active",
  "editor.guides.bracketPairsHorizontal": "active",
  "editor.renderWhitespace": "boundary",
  "editor.stickyScroll.enabled": true,
  "editor.hover.sticky": true,
  "editor.codeActionsOnSave": {
    "source.fixAll": "always",
    "source.fixAll.eslint": "always",
    "source.organizeImports": "never"
  },
  "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
  "explorer.confirmDelete": false,
  "explorer.confirmDragAndDrop": false,
  "files.eol": "\n",
  "files.insertFinalNewline": true,
  "files.simpleDialog.enable": true,
  "files.autoSave": "onFocusChange",
  "files.autoSaveWhenNoErrors": true,
  "debug.onTaskErrors": "debugAnyway",
  "search.exclude": {
    "**/.git": true,
    "**/.hg": true,
    "**/.svn": true,
    "**/.DS_Store": true,
    "**/CVS": true,
    "**/Thumbs.db": true,
    "**/.classpath": true,
    "**/.settings": true,
    "**/.github": true,
    "**/.nuxt": true,
    "**/.output": true,
    "**/.pnpm": true,
    "**/.vscode": true,
    "**/.yarn": true,
    "**/bower_components": true,
    "**/dist/**": true,
    "**/logs": true,
    "**/node_modules": true,
    "**/out/**": true,
    "**/package-lock.json": true,
    "**/pnpm-lock.yaml": true,
    "**/tmp": true,
    "**/yarn.lock": true,
    "**/bin": true,
    "**/.turbo": true,
    "**/.changes": true,
    "**/.grit": true,
    "**/.changeset": true,
    "**/.husky": true,
    "**/dist": true,
    "**/coverage": true,
    "**/.next": true,
    "**/*.tsbuildinfo": true,
    "**/*.nyc_output": true,
    "**/*.tap": true,
    "**/.astro": true
  },
  // Extension configs
  "emmet.showSuggestionsAsSnippets": true,
  "emmet.triggerExpansionOnTab": true,
  "eslint.validate": [
    "javascript",
    "typescript",
    "javascriptreact",
    "typescriptreact",
    "vue",
    "html",
    "markdown"
    // "json",
    // "jsonc",
    // "json5"
  ],
  "cSpell.allowCompoundWords": true,
  "cSpell.language": "en,en-US",
  "iconify.annotations": true,
  "iconify.inplace": true,
  "tailwindCSS.experimental.classRegex": ["[a-zA-Z]*class[a-zA-Z]*='([^']+)'"],
  "svg.preview.mode": "svg",
  "turboConsoleLog.delimiterInsideMessage": "::",
  "turboConsoleLog.insertEnclosingFunction": false,
  "turboConsoleLog.includeFileNameAndLineNum": true,
  "turboConsoleLog.logMessagePrefix": "###",
  "color-highlight.markerType": "underline",
  // Files
  "files.trimTrailingWhitespace": true,
  "files.trimFinalNewlines": true,
  "files.exclude": {
    "**/bin": true,
    "**/.turbo": true,
    "**/.changes": true,
    "**/.yarn": true,
    "**/.vscode": true,
    "**/.git": true,
    "**/.github": true,
    "**/.grit": true,
    "**/.changeset": true,
    "**/node_modules": true,
    "**/.husky": true,
    "**/dist": true,
    "**/coverage": true,
    "**/.next": true,
    "**/*.tsbuildinfo": true,
    "**/*.nyc_output": true,
    "**/*.tap": true,
    "**/.astro": true
  },
  // Emmet, HTML, CSS and SCSS
  "emmet.includeLanguages": {
    "jsx": "javascriptreact, css",
    "ejs": "html",
    "vue-html": "html"
  },
  "html.hover.documentation": false,
  "html.hover.references": false,
  "css.hover.documentation": false,
  "css.hover.references": false,
  "scss.hover.documentation": false,
  "scss.hover.references": false,
  // Formatting
  "[javascript][javascriptreact][typescript][typescriptreact][vue][jsonc][json][css][scss]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  // Rust
  "[rust]": {
    "editor.defaultFormatter": "rust-lang.rust-analyzer",
    "editor.inlayHints.enabled": "on",
    "editor.formatOnSave": true
  },
  "rust-analyzer.checkOnSave": true,
  "rust-analyzer.check.command": "clippy",
  // Vue
  "vue.inlayHints.missingProps": true,
  "vue.autoInsert.dotValue": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "javascript.updateImportsOnFileMove.enabled": "always",
  "vue.server.hybridMode": true,
  "tailwind-fold.foldStyle": "QUOTES",
  "tailwind-fold.foldLengthThreshold": 8,
  // Git
  "git.autofetch": true,
  "git.confirmSync": false,
  "git.openRepositoryInParentFolders": "always",
  "git.enableSmartCommit": true,
  "git.untrackedChanges": "separate",
  "gitlens.views.commits.pullRequests.showForBranches": false,
  "gitlens.views.commits.pullRequests.enabled": false,
  "gitlens.views.commits.files.layout": "list",
  "gitlens.codeLens.enabled": false,
  "gitlens.codeLens.authors.enabled": false,
  "gitlens.codeLens.recentChange.enabled": false,
  "github.copilot.enable": {
    "*": true,
    "plaintext": true,
    "markdown": true,
    "scminput": false,
    "typescript": true,
    "rust": true
  },
  // Screencast
  "screencastMode.fontSize": 32,
  "screencastMode.verticalOffset": 4,
  // Terminal
  "terminal.explorerKind": "external",
  "terminal.integrated.sendKeybindingsToShell": true,
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.cursorStyle": "line",
  "terminal.integrated.fontFamily": "Monaspace Neon, monospace",
  "terminal.integrated.fontSize": 17,
  "terminal.external.osxExec": "warp.app",
  // Inlay hints
  "javascript.validate.enable": false,
  "typescript.referencesCodeLens.enabled": true,
  // Diff editor
  "diffEditor.ignoreTrimWhitespace": false,
  "diffEditor.codeLens": true,
  "diffEditor.hideUnchangedRegions.enabled": true,
  // General editor settings
  "editor.autoIndent": "full",
  "editor.insertSpaces": false,
  "editor.largeFileOptimizations": false,
  "editor.suggestSelection": "first",
  "editor.tabCompletion": "on",
  "explorer.compactFolders": false,
  // Error lens
  "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  "errorLens.excludeBySource": ["cSpell"],
  "errorLens.fontSize": "12",
  "errorLens.onSave": true,
  "errorLens.fontStyleItalic": true,
  "explorer.openEditors.visible": 1
}

Keybinding

// Place your key bindings in this file to override the defaultsauto[]
[
  {
    "key": "cmd+i",
    "command": "-inlineChat.start",
    "when": "editorFocus && inlineChatHasProvider && !editorReadonly"
  },
  {
    "key": "cmd+shift+i",
    "command": "inlineChat.start",
    "when": "editorFocus && inlineChatHasProvider && !editorReadonly"
  },
  {
    "key": "cmd+w",
    "command": "-workbench.action.closeWindow",
    "when": "!editorIsOpen && !multipleEditorGroups"
  },
  {
    "key": "alt+cmd+l",
    "command": "turboConsoleLog.displayLogMessage"
  },
  {
    "key": "cmd+'",
    "command": "editor.action.marker.nextInFiles",
    "when": "editorFocus"
  },
  {
    "key": "shift+cmd+g",
    "command": "-editor.action.previousMatchFindAction",
    "when": "editorFocus"
  },
  {
    "key": "shift+cmd+g",
    "command": "-workbench.action.terminal.findPrevious",
    "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported"
  },
  {
    "key": "shift+cmd+g",
    "command": "-workbench.action.terminal.openDetectedLink",
    "when": "accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal'"
  },
  {
    "key": "ctrl+shift+g",
    "command": "-workbench.view.scm",
    "when": "workbench.scm.active"
  },
  {
    "key": "shift+cmd+g",
    "command": "workbench.view.scm",
    "when": "workbench.scm.active"
  },
  {
    "key": "shift+cmd+g",
    "command": "workbench.view.scm",
    "when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment