Created
August 1, 2021 16:32
-
-
Save luizomf/850624034e1929b3eeb2e7ab4fbaf30f to your computer and use it in GitHub Desktop.
My Vs Code settings.json and keybindings.json.
This file contains hidden or 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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
// + Zoom na fonte | |
"key": "ctrl+alt+cmd+=", | |
"command": "editor.action.fontZoomIn" | |
}, | |
{ | |
// - Zoom na fonte | |
"key": "ctrl+alt+cmd+-", | |
"command": "editor.action.fontZoomOut" | |
}, | |
{ | |
// Reset zoom da fonte | |
"key": "ctrl+alt+cmd+0", | |
"command": "editor.action.fontZoomReset" | |
}, | |
{ | |
// Duplica linhas | |
"key": "alt+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
// Duplica linha acima | |
"key": "alt+s", | |
"command": "editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
// Comenta | |
"key": "ctrl+numpad_divide", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
// Remove o comenta original | |
"key": "ctrl+/", | |
"command": "-editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+k", | |
"command": "code-runner.runCustomCommand" | |
}, | |
{ | |
"key": "ctrl+alt+k", | |
"command": "-code-runner.runCustomCommand" | |
}, | |
{ | |
// Salva todos os arquivos | |
"key": "ctrl+alt+cmd+s", | |
"command": "workbench.action.files.saveAll" | |
}, | |
{ | |
// Mostra o terminal | |
"key": "ctrl+'", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+shift+[BracketLeft]", | |
"command": "-workbench.action.terminal.toggleTerminal", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+'", | |
"command": "workbench.action.terminal.focus", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+'", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
// Mata o terminal | |
"key": "ctrl+alt+b", | |
"command": "workbench.action.terminal.kill" | |
}, | |
{ | |
"key": "ctrl+escape", | |
"command": "workbench.action.toggleActivityBarVisibility" | |
}, | |
{ | |
// Muda para lowercase | |
"key": "shift+alt+l", | |
"command": "editor.action.transformtolowercase" | |
}, | |
{ | |
// Muda para snake case | |
"key": "shift+alt+s", | |
"command": "editor.action.transformToSnakecase" | |
}, | |
{ | |
// Muda para title case | |
"key": "shift+alt+t", | |
"command": "editor.action.transformToTitlecase" | |
}, | |
{ | |
// Muda para uppercase | |
"key": "shift+alt+u", | |
"command": "editor.action.transformToUppercase" | |
}, | |
{ | |
// Move painel para a direita | |
"key": "ctrl+alt+3", | |
"command": "workbench.action.positionPanelRight" | |
}, | |
{ | |
// Move o painel para baixo | |
"key": "ctrl+alt+2", | |
"command": "workbench.action.positionPanelBottom" | |
}, | |
{ | |
"key": "ctrl+cmd+c", | |
"command": "workbench.action.terminal.openNativeConsole", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "shift+cmd+c", | |
"command": "-workbench.action.terminal.openNativeConsole", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+cmd+0", | |
"command": "workbench.action.zoomReset" | |
}, | |
{ | |
"key": "cmd+numpad0", | |
"command": "-workbench.action.zoomReset" | |
}, | |
{ | |
"key": "ctrl+cmd+=", | |
"command": "workbench.action.zoomIn" | |
}, | |
{ | |
"key": "cmd+numpad_add", | |
"command": "-workbench.action.zoomIn" | |
}, | |
{ | |
"key": "ctrl+cmd+-", | |
"command": "workbench.action.zoomOut" | |
}, | |
{ | |
"key": "cmd+numpad_subtract", | |
"command": "-workbench.action.zoomOut" | |
}, | |
{ | |
"key": "alt+cmd+n", | |
"command": "explorer.newFile" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "-extension.vim_ctrl+n", | |
"when": "editorTextFocus && vim.active && vim.use<C-n> && !inDebugRepl || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'SearchInProgressMode'" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "-extension.vim_ctrl+p", | |
"when": "suggestWidgetVisible && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "-extension.vim_ctrl+f", | |
"when": "editorTextFocus && vim.active && vim.use<C-f> && !inDebugRepl && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "-extension.vim_ctrl+b", | |
"when": "editorTextFocus && vim.active && vim.use<C-b> && !inDebugRepl && vim.mode != 'Insert'" | |
} | |
// { | |
// "key": "ctrl+shift+n", | |
// "command": "cursorMove", | |
// "args": { | |
// "to": "down", | |
// "by": "line", | |
// "value": 5 | |
// }, | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "ctrl+shift+p", | |
// "command": "cursorMove", | |
// "args": { | |
// "to": "up", | |
// "by": "line", | |
// "value": 5 | |
// }, | |
// "when": "editorTextFocus" | |
// } | |
] |
This file contains hidden or 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
{ | |
// Window | |
// "window.menuBarVisibility": "toggle", | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.editor.labelFormat": "short", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.editor.enablePreview": false, | |
"workbench.sideBar.location": "left", | |
"workbench.list.smoothScrolling": true, | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"workbench.editorAssociations": { | |
"*.ipynb": "jupyter-notebook" | |
}, | |
// Explorer | |
"explorer.compactFolders": false, | |
"explorer.confirmDelete": true, | |
// Editor and breadcrumbs | |
"breadcrumbs.enabled": true, | |
"editor.largeFileOptimizations": true, | |
"editor.renderControlCharacters": true, | |
"editor.tabSize": 2, | |
"editor.renderLineHighlight": "gutter", | |
"editor.rulers": [79, 120], | |
"editor.minimap.enabled": false, | |
"editor.fontSize": 20, | |
"editor.detectIndentation": true, | |
"editor.snippetSuggestions": "inline", | |
"editor.wordBasedSuggestions": false, | |
"editor.suggest.localityBonus": false, | |
"editor.parameterHints.enabled": true, | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"editor.suggestSelection": "first", | |
"editor.suggest.showValues": true, | |
"editor.formatOnPaste": false, | |
"editor.cursorSmoothCaretAnimation": true, | |
"editor.mouseWheelScrollSensitivity": 2, | |
"editor.smoothScrolling": true, | |
"editor.mouseWheelZoom": true, | |
"editor.fontFamily": "'Operator Mono Lig Book', 'OperatorMonoLig-Book', 'SF Mono', Consolas, 'Source Code Pro', 'Dank Mono', 'Fira Code', Menlo, 'Inconsolata', 'Droid Sans Mono', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', Courier, Monaco, monospace", | |
"editor.fontLigatures": true, | |
"editor.formatOnSave": true, | |
"editor.linkedEditing": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.accessibilitySupport": "off", | |
"editor.renderWhitespace": "all", | |
"editor.glyphMargin": true, // gain space, but remove break points | |
// Git | |
"git.enableSmartCommit": true, | |
"diffEditor.ignoreTrimWhitespace": true, | |
// Debug | |
"debug.console.fontSize": 18, | |
// Files and search | |
"files.defaultLanguage": "{activeEditorLanguage}", | |
"files.exclude": { | |
"USE_GITIGNORE": true | |
}, | |
"search.exclude": { | |
"**/node_modules": true, | |
"**/bower_components": true, | |
"**/coverage": true, | |
"**/dist": true, | |
"**/build": true, | |
"**/.build": true, | |
"**/.gh-pages": true | |
}, | |
// Terminal | |
"terminal.integrated.copyOnSelection": false, | |
"terminal.integrated.cursorBlinking": true, | |
"terminal.integrated.cursorStyle": "line", | |
"terminal.integrated.defaultProfile.linux": "zsh", | |
"terminal.external.linuxExec": "x-terminal-emulator", | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.explorerKind": "external", | |
"terminal.integrated.fontFamily": "'Operator Mono Lig Book', 'OperatorMonoLig-Book', 'SF Mono', Consolas, 'Source Code Pro', 'Dank Mono', 'Fira Code', Menlo, 'Inconsolata', 'Droid Sans Mono', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', Courier, Monaco, monospace", | |
"terminal.integrated.fontSize": 18, | |
"terminal.integrated.drawBoldTextInBrightColors": false, | |
"terminal.integrated.enableFileLinks": false, | |
"terminal.integrated.scrollback": 10000, | |
"terminal.integrated.env.linux": { | |
// "PORT": "4000" | |
}, | |
// Javascript & TypeScript | |
"javascript.preferences.quoteStyle": "single", | |
"typescript.preferences.quoteStyle": "single", | |
"javascript.validate.enable": false, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"typescript.suggest.autoImports": true, | |
"javascript.preferences.importModuleSpecifier": "project-relative", | |
"[javascript]": { | |
"editor.suggest.showKeywords": false | |
}, | |
// Python | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.python", | |
"editor.tabSize": 4, | |
"editor.insertSpaces": true, | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true | |
}, | |
"python.languageServer": "Pylance", | |
"python.formatting.autopep8Args": [ | |
"--indent-size=4" | |
// "--ignore=E111", | |
], | |
"python.linting.flake8Args": [ | |
// "--ignore=E111", | |
], | |
"python.linting.pylintArgs": [ | |
"--load-plugins=pylint_django", | |
"--errors-only" | |
], | |
"python.pythonPath": "/opt/homebrew/bin/python3", | |
"python.defaultInterpreterPath": "/opt/homebrew/bin/python3", | |
"python.linting.flake8Enabled": true, | |
"python.testing.unittestEnabled": false, | |
"python.linting.mypyEnabled": true, | |
"python.showStartPage": false, | |
// Files associations | |
"files.associations": { | |
"*.js": "javascript", | |
"*.jsx": "javascriptreact", | |
"*.xml": "html", | |
"*.svg": "html", | |
"*.html": "html", | |
"django-html": "html", | |
"**/*.html": "html", | |
"**/templates/**/*.html": "django-html", | |
"**/requirements{/**,*}.{txt,in}": "pip-requirements" | |
}, | |
// Emmet | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"emmet.includeLanguages": { | |
"django-html": "html", | |
"javascript": "javascriptreact", | |
"typescript": "typescriptreact" | |
}, | |
"emmet.triggerExpansionOnTab": true, | |
// Misc | |
"html.autoClosingTags": true, | |
"javascript.autoClosingTags": true, | |
"typescript.autoClosingTags": true, | |
// Security | |
"security.workspace.trust.untrustedFiles": "open", | |
// ##################### Extensions ##################### // | |
// Prettier and Eslint | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true, | |
"source.fixAll": true | |
// "source.organizeImports": true | |
}, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"prettier.configPath": "~/Development/config-files/prettierrc.json", | |
"[xml]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[svg]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[django-html]": { | |
"editor.formatOnSave": false, | |
"editor.defaultFormatter": null, | |
"editor.quickSuggestions": { | |
"other": true, | |
"comments": true, | |
"strings": true | |
} | |
}, | |
// // Bracket pair colorizer | |
// "bracket-pair-colorizer-2.colors": [ | |
// // "#8BE9FD", | |
// // "#50FA7B", | |
// // "#FFB86C", | |
// // "#FF79C6", | |
// // "#BD93F9", | |
// // "#F1FA8C" | |
// "#F8F8F2" | |
// ], | |
// "bracket-pair-colorizer-2.colorMode": "Consecutive", | |
// "bracket-pair-colorizer-2.forceUniqueOpeningColor": false, | |
// "bracket-pair-colorizer-2.forceIterationColorCycle": false, | |
// "bracket-pair-colorizer-2.showBracketsInGutter": true, | |
// "bracket-pair-colorizer-2.showBracketsInRuler": true, | |
// "bracket-pair-colorizer-2.showVerticalScopeLine": false, | |
// "bracket-pair-colorizer-2.showHorizontalScopeLine": false, | |
// "bracket-pair-colorizer-2.unmatchedScopeColor": "#FF5555", | |
// Code runner | |
"code-runner.clearPreviousOutput": true, | |
"code-runner.ignoreSelection": true, | |
"code-runner.saveFileBeforeRun": true, | |
"code-runner.runInTerminal": true, | |
"code-runner.preserveFocus": false, | |
"code-runner.executorMap": { | |
"python": "python3 -u", | |
"typescript": "npx ts-node --files --transpile-only" | |
}, | |
// Material icon theme extension | |
"material-icon-theme.hidesExplorerArrows": true, | |
"material-icon-theme.folders.theme": "specific", | |
"material-icon-theme.folders.color": "#6273a6", | |
// // Colorize (in big files you may want to disable this) | |
// "colorize.hide_current_line_decorations": false, | |
// "colorize.include": [".tsx", ".jsx", ".ts", ".js"], | |
// "colorize.languages": [ | |
// "typescriptreact", | |
// "javascriptreact", | |
// "javascript", | |
// "typescript", | |
// "css", | |
// "sass", | |
// "scss", | |
// "less", | |
// "pcss", | |
// "sss", | |
// "stylus", | |
// "xml", | |
// "svg", | |
// "json", | |
// "jsonc", | |
// "yaml" | |
// ], | |
// "colorize.colorized_colors": [ | |
// // "BROWSERS_COLORS", // this is reaaally annoying | |
// "HEXA", | |
// "RGB", | |
// "HSL" | |
// ], | |
// "colorize.enable_search_variables": false, | |
// CSpell checker extension | |
"cSpell.enabled": true, | |
"cSpell.language": "en,pt,pt_BR", | |
"cSpell.enableFiletypes": ["django-html", "shellscript"], | |
"cSpell.showStatus": false, | |
"cSpell.customUserDictionaries": [ | |
{ | |
"name": "Custom", | |
"description": "Custom CSpell Dict", | |
"path": "~/Development/config-files/custom-cspell-dictionary.txt", | |
"addWords": false | |
} | |
], | |
// XML Language Support by Red Hat | |
"redhat.telemetry.enabled": true, | |
// vsintellicode | |
"vsintellicode.features.python.deepLearning": "enabled", | |
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration", | |
"typescript.tsserver.log": "off", | |
"workbench.colorTheme": "OM Theme (Night Owl Italic)", | |
"notebook.cellToolbarLocation": { | |
"default": "right", | |
"jupyter-notebook": "left" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment