Last active
March 13, 2023 04:53
-
-
Save polodev/e55b5d5bce56a77f0f5f4ec9d3e571c3 to your computer and use it in GitHub Desktop.
Vs code Setting and Keybindings
This file contains 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[] | |
[ | |
{ | |
"key": "ctrl+alt+n", | |
"command": "cursorColumnSelectDown", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+alt+u", | |
"command": "cursorColumnSelectUp", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log('${TM_SELECTED_TEXT}$1 on line ${TM_FILENAME} - ${TM_LINE_NUMBER}')$2;" | |
} | |
}, | |
// Ensure that tab button works in vim | |
{ | |
"key": "tab", | |
"command": "tab", | |
"when": "editorTextFocus && !editorTabMovesFocus" | |
}, | |
{ | |
"key": "shift+tab", | |
"command": "outdent", | |
"when": "editorTextFocus && !editorTabMovesFocus" | |
}, | |
// Move to the previous/next editor. | |
{ | |
"key": "shift+cmd+l", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "shift+cmd+h", | |
"command": "workbench.action.previousEditor" | |
}, | |
// Move active editor left or right (useful for full-stack web dev). | |
{ | |
"key": "cmd+ctrl+h", | |
"command": "moveActiveEditor", | |
"args": { | |
"to": "left" | |
} | |
}, | |
{ | |
"key": "cmd+ctrl+l", | |
"command": "moveActiveEditor", | |
"args": { | |
"to": "right" | |
} | |
}, | |
// Traverse VSCode IntelliSense suggestions with vim keybindings. | |
{ | |
"key": "cmd+j", | |
"command": "selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "cmd+k", | |
"command": "selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
// Traverse VSCode quick open options with vim keybindings. | |
{ | |
"key": "cmd+j", | |
"command": "workbench.action.quickOpenSelectNext", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "cmd+k", | |
"command": "workbench.action.quickOpenSelectPrevious", | |
"when": "inQuickOpen" | |
}, | |
// VSCode terminal commands. | |
{ | |
"key": "cmd+n", | |
"command": "workbench.action.terminal.newInActiveWorkspace", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "cmd+enter", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "cmd+ctrl+enter", | |
"command": "workbench.action.toggleMaximizedPanel" | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "workbench.action.terminal.split", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
{ | |
"key": "cmd+l", | |
"command": "workbench.action.terminal.focusNextPane", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
{ | |
"key": "cmd+h", | |
"command": "workbench.action.terminal.focusPreviousPane", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
{ | |
"key": "cmd+w", | |
"command": "workbench.action.terminal.kill", | |
"when": "terminalFocus" | |
}, | |
// focusing prev and next group | |
// { | |
// "key": "shift+h", | |
// "command": "workbench.action.focusPreviousGroup" | |
// }, | |
// { | |
// "key": "shift+l", // or change custom shortcuts | |
// "command": "workbench.action.focusNextGroup" | |
// } | |
{ | |
"key": "cmd+shift+s", // or change custom shortcuts | |
"command": "workbench.action.editorLayoutSingle" | |
}, | |
{ | |
"key": "cmd+shift+d", // or change custom shortcuts | |
"command": "workbench.action.editorLayoutTwoColumns" | |
}, | |
{ | |
"key": "cmd+shift+b", // or change custom shortcuts | |
"command": "workbench.action.focusSideBar" | |
}, | |
] |
This file contains 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
{ | |
// style | |
"editor.tabSize": 2, | |
"editor.lineNumbers": "on", | |
"git.decorations.enabled": false, | |
"editor.glyphMargin": false, | |
"editor.insertSpaces": true, | |
"editor.find.addExtraSpaceOnTop": true, | |
"editor.suggestSelection": "first", | |
"editor.renderLineHighlight": "all", | |
"editor.acceptSuggestionOnEnter": "on", | |
"editor.minimap.enabled": false, | |
"window.zoomLevel": 0, | |
"workbench.tree.indent": 20, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.colorTheme": "GitHub Dark Default", | |
// font settings | |
"editor.fontFamily": "'Fira Code', monospace", | |
"editor.fontFamilyb": "Iosevka Custom", | |
"editor.fontFamilya": "'Operator Mono', monospace", | |
"editor.fontSize": 14, | |
"editor.suggestFontSize": 14, | |
"editor.lineHeight": 1.8, // default 1.5 | |
"editor.letterSpacing": 1, | |
"editor.fontLigatures": true, | |
"terminal.integrated.fontFamily": "Iosevka Custom Extended", | |
"terminal.integrated.fontSize": 14, | |
"terminal.integrated.fontWeight": "300", | |
"terminal.integrated.fontWeightBold": "300", | |
"workbench.fontAliasing": "antialiased", | |
// functionality | |
"search.searchOnType": false, | |
"editor.wordBasedSuggestionsMode": "allDocuments", | |
"search.useGlobalIgnoreFiles": true, | |
"editor.quickSuggestions": { | |
"strings": true, | |
"other": true, | |
"comments": true, | |
}, | |
"files.restoreUndoStack": false, | |
"workbench.settings.editor": "json", | |
"intelephense.diagnostics.typeErrors": false, | |
"intelephense.diagnostics.undefinedTypes": false, | |
"extensions.autoUpdate": false, | |
"emmet.includeLanguages": { | |
"blade": "html" | |
}, | |
"emmet.triggerExpansionOnTab": false, | |
"emmet.showSuggestionsAsSnippets": true, | |
// Vim specific | |
"vim.hlsearch": true, | |
// Zen Mode | |
"zenMode.hideTabs": false, | |
"zenMode.hideLineNumbers": false, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment