Skip to content

Instantly share code, notes, and snippets.

@trey
Last active September 26, 2023 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trey/0a71f58ecfe1c5978775c1513036521c to your computer and use it in GitHub Desktop.
Save trey/0a71f58ecfe1c5978775c1513036521c to your computer and use it in GitHub Desktop.
VS Code settings 2023

Trey’s VS Code Settings

// Place your key bindings in this file to override the defaults
[
{
"key": "alt+cmd+i",
"command": "editor.action.toggleRenderWhitespace"
},
{
"key": "ctrl+cmd+w",
"command": "workbench.action.closeAllEditors"
},
{
"key": "ctrl+w",
"command": "editor.emmet.action.wrapWithAbbreviation"
},
{
"key": "alt+z",
"command": "editor.action.toggleWordWrap"
},
{
"key": "shift+cmd+\\",
"command": "workbench.files.action.showActiveFileInExplorer"
},
// Is there a shortcut to move focus to the sidebar in Visual Studio Code?
// https://stackoverflow.com/a/49668291/96257
{
// Unbind unconditional default
"key": "cmd+0",
"command": "-workbench.action.focusSideBar"
},
{
// |←
"key": "cmd+0",
"when": "!sideBarFocus",
"command": "workbench.action.focusSideBar"
},
{
// |→
"key": "cmd+0",
"when": "sideBarFocus",
"command": "workbench.action.focusActiveEditorGroup"
},
{
"key": "alt+cmd+m",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "cmd+k cmd+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "cmd+k cmd+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+alt+cmd+i",
"command": "workbench.action.toggleActivityBarVisibility"
},
// Toggle between terminal and editor focus
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+l",
"command": "settings.cycle.lineNumbers",
"when": "editorFocus"
}
]
{
"telemetry.telemetryLevel": "off",
"workbench.editor.tabCloseButton": "left",
"editor.fontSize": 16,
"editor.renderWhitespace": "none",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.minimap.enabled": false,
"terminal.integrated.cursorBlinking": true,
"editor.fontFamily": "FiraCode-Retina",
"editor.fontLigatures": true,
"explorer.excludeGitIgnore": false,
"git.enableCommitSigning": true,
"cSpell.userWords": [
"allauth",
"apod",
"Artventory",
"astro",
"astrojs",
"Browsersync",
"buttondown",
"callout",
"cassettenest",
"certresolver",
"cloudinary",
"CODECOV",
"Cookeville",
"Cropfactor",
"csrfmiddlewaretoken",
"csrftoken",
"cssnano",
"currentcolor",
"customresponseheaders",
"djlint",
"DJSTRIPE",
"dodgerblue",
"Dutchie",
"Ektachrome",
"endcomment",
"entrypoints",
"exif",
"favicons",
"Ferrania",
"Fira",
"fstop",
"govuk",
"gunicorn",
"Hasselblad",
"headlessui",
"Heroicon",
"Heroicons",
"Hstm",
"hsts",
"htdocs",
"htmx",
"kirbytext",
"laravel",
"linebreak",
"LITESTREAM",
"Livewire",
"Livie's",
"loadbalancer",
"luxon",
"maildev",
"makemigrations",
"middlewares",
"minmax",
"nonversioned",
"noopener",
"noreferrer",
"Nunjucks",
"papayawhip",
"Photoshop",
"phpserialize",
"pico",
"Piepmeier",
"Piepmeier’s",
"Piepworks",
"pinterest",
"pipenv",
"Pipfile",
"pkcs",
"Portra",
"preact",
"Provia",
"pycodestyle",
"pytz",
"redirections",
"REFERER",
"roadmap",
"runserver",
"sectiontab",
"Shortcode",
"shortcodes",
"signedup",
"signup",
"stylelint",
"supabase",
"tailwindcss",
"totp",
"traefik",
"Traefik",
"Traefik’s",
"treylabs",
"treypiepmeier",
"venv",
"websecure",
"whitenoise",
"wsgi"
],
"window.autoDetectColorScheme": true,
"workbench.preferredDarkColorTheme": "Catppuccin Mocha",
"workbench.colorTheme": "Catppuccin Mocha",
"workbench.preferredLightColorTheme": "Catppuccin Latte",
"terminal.integrated.fontSize": 14,
"workbench.tree.indent": 20,
"editor.rulers": [80, 120],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"explorer.confirmDragAndDrop": false,
"terminal.integrated.enableMultiLinePasteWarning": false,
"emmet.includeLanguages": {
"django-html": "html",
"javascript": "javascriptreact"
},
"files.associations": {
"*.env": "properties",
"*.php": "php",
"TAG_EDITMSG": "git-commit",
"*.twig": "twig"
},
"[markdown]": {
"editor.formatOnSave": false,
"files.trimTrailingWhitespace": false
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[django-html]": {
"editor.defaultFormatter": "monosans.djlint"
},
"editor.linkedEditing": true,
"workbench.iconTheme": "catppuccin-mocha",
"python.defaultInterpreterPath": "python3",
"python.terminal.activateEnvInCurrentTerminal": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"black-formatter.showNotifications": "always",
"djlint.useEditorIndentation": false,
"djlint.formatLanguages": ["django-html", "jinja", "jinja-html"],
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[astro]": {
"editor.formatOnSave": false,
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"settings.cycle": [
{
"id": "lineNumbers",
"values": [
{
"editor.lineNumbers": "off",
"editor.folding": false,
"editor.glyphMargin": false
},
{
"editor.lineNumbers": "on",
"editor.folding": true,
"editor.glyphMargin": true
}
]
}
],
"editor.lineNumbers": "on",
"editor.folding": true,
"editor.glyphMargin": true
}
@trey
Copy link
Author

trey commented Aug 24, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment