Skip to content

Instantly share code, notes, and snippets.

@sirius-beck
Last active June 20, 2024 18:11
Show Gist options
  • Save sirius-beck/8c4b27be2da8dac544e2f35f17eac628 to your computer and use it in GitHub Desktop.
Save sirius-beck/8c4b27be2da8dac544e2f35f17eac628 to your computer and use it in GitHub Desktop.

VS Code Settings

My personal VS Code settings and keybindings

Settings

Open your profile's settings.json file and paste the contents of this gist

ctr/cmd + shift + P > Preferences: Open User Settings (JSON)

Keybindings

Open your profile's keybindings.json file and paste the contents of this gist

ctr/cmd + shift + P > Preferences: Open Keyboard Shortcuts (JSON)

Altered Shortcuts

Command Keybinding
Delete Line Alt + Q
GitHub Copilot: Enable/Disable Copilot completions Ctrl + K ;
rust-analyzer: Open Docs Ctrl + Alt + D
Toggle Block Comment Ctrl + ;
Toggle Line Comment Ctrl + /
View: Toggle Terminal Alt + '
View: Toggle Zen Mode Alt + F11
openInIntegratedTerminal Ctrl + '
Emmet: Wrap with Abbreviation Alt + W
// Put your key bindings in this file to override the defaults
[
{
"key": "alt+f11",
"command": "workbench.action.toggleZenMode",
"when": "!isAuxiliaryWindowFocusedContext"
},
{
"key": "ctrl+k z",
"command": "-workbench.action.toggleZenMode",
"when": "!isAuxiliaryWindowFocusedContext"
},
{
"key": "alt+q",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+oem_2",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+oem_3",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+oem_3",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+oem_3",
"command": "openInIntegratedTerminal"
},
{
"key": "ctrl+k oem_2",
"command": "github.copilot.toggleCopilot"
},
{
"key": "ctrl+abnt_c1",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+oem_2",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+d",
"command": "rust-analyzer.openDocs",
"when": "inRustProject"
},
{
"key": "alt+w",
"command": "editor.emmet.action.wrapWithAbbreviation"
},
{
"key": "f2",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+f2",
"command": "editor.action.changeAll",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+f2",
"command": "-editor.action.changeAll",
"when": "editorTextFocus && !editorReadonly"
}
]
{
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[properties]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"apc.activityBar": {
"itemMargin": 4,
"itemSize": 42,
"size": 42
},
"apc.font.family": "Inter",
"apc.header": {
"default": 36,
"fontSize": 14,
"height": 36
},
"apc.listRow": {
"fontSize": 15,
"height": 27
},
"apc.stylesheet": {
/* Action bar */
".action-toolbar-container .monaco-toolbar .monaco-action-bar .actions-container": "opacity: 0; transition: opacity 0.15s ease-in-out;",
".action-toolbar-container .monaco-toolbar .monaco-action-bar .actions-container:hover": "opacity: 1;",
".editor-actions": "opacity: 0; transition: opacity 0.15s ease-in-out;",
".editor-actions:hover": "opacity: 1;",
// ".split-view-view:first-child .pane-header": "display: none !important;" /* toggle component header */,
".monaco-list-row": "border-radius: 4px;",
// ".monaco-workbench .monaco-list:not(.element-focused):focus:before": "display: none;",
/* Left sidebar */
// ".monaco-workbench .part.sidebar.left.pane-composite-part .composite.title": "opacity: 0; transition: opacity 0.15s ease-in-out;" /* component action icons */,
// ".monaco-workbench .part.sidebar.left.pane-composite-part .composite.title:hover": "opacity: 1;" /* component action icons */,
".nosidebar .inline-tabs-placeholder": "width: 75px;",
".pane-body": "padding: 8px;",
".pane-header": "padding: 0 8px;",
/* Command pallet */
".quick-input-widget": "margin-top: 290px;",
// ".split-view-view .part.sidebar.left.pane-composite-part": "display: flex; flex-direction: column; height: 100%;",
// ".split-view-view .part.sidebar.left.pane-composite-part .content": "flex: 1;",
// ".split-view-view .part.sidebar.left.pane-composite-part .header-or-footer": "opacity: 0; transition: opacity 0.15s ease-in-out;",
// ".split-view-view .part.sidebar.left.pane-composite-part .header-or-footer:hover": "opacity: 1;",
/* Statusbar */
// ".split-view-view .part.statusbar.status-border-top": "opacity: 0; transition: opacity 0.15s ease-in-out;",
// ".split-view-view .part.statusbar.status-border-top:hover": "opacity: 1;",
/* Sidebar */
".title-label > h2": "display: none",
/* App window */
".titlebar-container": "padding: 0 4px;",
".window-title": "opacity: 0; transition: opacity 0.15s ease-in-out; display: none !important;"
// ".window-title:hover": "opacity: 1;"
},
"breadcrumbs.enabled": true,
"commentTranslate.hover.concise": true,
"commentTranslate.hover.string": true,
"commentTranslate.hover.variable": true,
"cSpell.language": "en,pt,pt_BR",
"cSpell.userWords": [
"Argb",
"bootcamp",
"chakra",
"checkin",
"checkins",
"cjsx",
"clippy",
"clsx",
"Codegen",
"datadog",
"Datetime",
"dayjs",
"deathlotus",
"Dotenv",
"Elysia",
"esbuild",
"fastify",
"Fastify",
"feedbackwidget",
"ffprobe",
"fullscreen",
"Hasher",
"Hono",
"ilike",
"IUGU",
"jamjuree",
"jupiter",
"linux",
"liveblocks",
"LIVEBLOCKS",
"Marguerita",
"mensageria",
"middlewares",
"mixpanel",
"mjsx",
"monaco",
"nestjs",
"nsis",
"omni",
"Omni",
"Onboarded",
"pallas",
"Phind",
"postgres",
"postgresql",
"prefetch",
"reactflow",
"roboto",
"rocketseat",
"rotion",
"rsbuild",
"rsxp",
"rustc",
"Sandpack",
"shadcn",
"shiki",
"siriusbeck",
"skylab",
"slint",
"sqlite",
"Structs",
"stylelintrc",
"supergraph",
"svgr",
"sympla",
"tabnine",
"tailwindcss",
"tauri",
"textblock",
"tiptap",
"trpc",
"TRPC",
"tseslint",
"tsup",
"unfollow",
"Unfollow",
"unform",
"Unform",
"unmark",
"unranked",
"upsert",
"Usuario",
"WEBPUSH",
"winget",
"Winget",
"winpe",
"youtube",
"zustand"
],
"dotenv.enableAutocloaking": false,
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.fixAll.sort-json": "never"
},
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.foldingImportsByDefault": false,
"editor.fontFamily": "Fira Code Light",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.formatOnSave": true,
"editor.guides.bracketPairs": true,
"editor.hover.delay": 700,
"editor.inlayHints.fontFamily": "Inter",
"editor.lineHeight": 1.8,
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.quickSuggestions": {
"strings": "on"
},
"editor.renderLineHighlight": "gutter",
"editor.rulers": [80, 100],
"editor.scrollbar.horizontalScrollbarSize": 10,
"editor.scrollbar.verticalScrollbarSize": 10,
"editor.semanticHighlighting.enabled": true,
"editor.smoothScrolling": true,
"editor.suggest.selectionMode": "whenQuickSuggestion",
"editor.tabSize": 2,
"editor.tokenColorCustomizations": {
"[*Dark*]": {
"textMateRules": [
{
"scope": "ref.matchtext",
"settings": {
"foreground": "#fff"
}
}
]
},
"[*Light*]": {
"textMateRules": [
{
"scope": "ref.matchtext",
"settings": {
"foreground": "#000"
}
}
]
},
"textMateRules": []
},
"emmet.excludeLanguages": [],
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"markdown": "html",
"typescript": "typescriptreact"
},
"emmet.syntaxProfiles": {
"javascript": "jsx",
"typescript": "tsx"
},
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmPasteNative": false,
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.cs": "${capture}.*",
"*.csproj": "${capture}.csproj*",
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.ts": "${capture}.js",
"*.tsx": "${capture}.ts",
"Cargo.toml": "Cargo.*, tauri.conf.*",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, tsconfig*, .eslintrc*, eslint.config.*, .prettierrc*, .babelrc*, pnpm-workspace.*, .yarnrc*, .npmrc*, tailwind.config.*, postcss.config.*, vite.config.*, prettier.config.*, rsbuild.*, .prettierignore, .eslintignore"
},
"extensions.ignoreRecommendations": true,
"files.associations": {
"*.config": "xml",
"*.css": "tailwindcss",
"*.project": "pebakery",
"*.script": "pebakery",
".code-workspace": "jsonc",
".env*": "dotenv",
".eslintrc": "jsonc",
".eslintrc*.json": "jsonc",
".eslintrc.json": "json",
".prettierrc": "json",
".stylelintrc": "jsonc",
"README": "markdown",
"stylelintrc": "jsonc"
},
"files.exclude": {
"**/.idea": true,
"**/.vscode": true,
"**/.yarn": true,
"**/node_modules": true
},
"git.confirmSync": false,
"git.enableSmartCommit": true,
"git.openRepositoryInParentFolders": "always",
"github.copilot.chat.localeOverride": "pt-br",
"github.copilot.editor.enableAutoCompletions": true,
"github.copilot.enable": {
"*": true,
"markdown": true,
"plaintext": true,
"scminput": false
},
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"markdown.extension.toc.levels": "2..6",
"material-icon-theme.activeIconPack": "react",
"material-icon-theme.files.associations": {
"tsconfig.dev.json": "tsconfig"
},
"material-icon-theme.folders.associations": {
"electron": "server",
"renderer": "client"
},
"prisma.showPrismaDataPlatformNotification": false,
"projectManager.sortList": "Saved",
"security.workspace.trust.enabled": false,
"symbols.hidesExplorerArrows": false,
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.includeLanguages": {
"plaintext": "html"
},
"telemetry.telemetryLevel": "off",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.fontFamily": "Fira Code",
"terminal.integrated.fontSize": 14,
"terminal.integrated.gpuAcceleration": "on",
"terminal.integrated.hideOnStartup": "always",
"terminal.integrated.lineHeight": 1.4,
"typescript.updateImportsOnFileMove.enabled": "always",
"update.enableWindowsBackgroundUpdates": false,
"update.mode": "start",
"window.autoDetectColorScheme": true,
"window.commandCenter": false,
"window.dialogStyle": "custom",
"window.menuBarVisibility": "toggle",
"window.newWindowDimensions": "inherit",
"window.systemColorTheme": "auto",
"window.zoomLevel": 0.25,
"workbench.colorTheme": "Xcode Classic (Light)",
"workbench.commandPalette.experimental.suggestCommands": true,
"workbench.editor.customLabels.enabled": true,
"workbench.editor.customLabels.patterns": {
"**/*.*": "${filename}.${extname} (${dirname})"
},
"workbench.editor.empty.hint": "hidden",
"workbench.iconTheme": "material-icon-theme",
"workbench.layoutControl.type": "menu",
"workbench.list.smoothScrolling": true,
"workbench.panel.defaultLocation": "right",
"workbench.preferredDarkColorTheme": "Xcode Classic (Dark)",
"workbench.preferredLightColorTheme": "Xcode Classic (Light)",
"workbench.productIconTheme": "fluent-icons",
"workbench.quickOpen.closeOnFocusLost": false,
"workbench.reduceMotion": "off",
"workbench.startupEditor": "newUntitledFile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment