Skip to content

Instantly share code, notes, and snippets.

@samundra
Last active November 8, 2020 15:26
Show Gist options
  • Save samundra/f1a6d00489647f7dc657b4a775ce398b to your computer and use it in GitHub Desktop.
Save samundra/f1a6d00489647f7dc657b4a775ce398b to your computer and use it in GitHub Desktop.
Visual Studio Code files
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+1",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+[",
"command": "workbench.action.navigateBack"
},
{
"key": "cmd+]",
"command": "workbench.action.navigateForward"
},
{
"key": "cmd+r",
"command":"workbench.action.gotoSymbol",
},
{
"key": "shift+cmd+up",
"command": "-cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+up",
"command": "-workbench.action.terminal.selectToPreviousCommand",
"when": "terminalFocus"
},
{
"key": "shift+cmd+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+down",
"command": "-cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "cmd+down",
"command": "-cursorBottom",
"when": "textInputFocus"
},
{
"key": "cmd+up",
"command": "-cursorTop",
"when": "textInputFocus"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+up",
"command": "editor.action.moveLinesUpAction"
},
{
"key": "cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "-workbench.action.terminal.deleteToLineStart",
"when": "terminalFocus"
},
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "shift+cmd+g",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "shift+cmd+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "cmd+j",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+right",
"command": "-editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "cmd+j",
"command": "editor.action.wordHighlight.next",
"when": "editorTextFocus && hasWordHighlights"
},
{
"key": "f7",
"command": "-editor.action.wordHighlight.next",
"when": "editorTextFocus && hasWordHighlights"
},
{
"key": "ctrl+shift+cmd+f",
"command": "-workbench.action.toggleZenMode"
},
{
"key": "cmd+enter",
"command": "workbench.action.toggleZenMode"
},
{
"key": "cmd+k z",
"command": "-workbench.action.toggleZenMode"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "escape escape",
"command": "-workbench.action.exitZenMode",
"when": "inZenMode"
},
{
"key": "cmd+enter",
"command": "workbench.action.exitZenMode"
},
{
"key": "cmd+j",
"command": "editor.action.addSelectionToNextFindMatch"
},
{
"key": "cmd+k cmd+k",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "shift+alt+cmd+c",
"command": "-copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "shift+cmd+c",
"command": "copyRelativeFilePath"
},
{
"key": "cmd+k cmd+q",
"command": "-workbench.action.navigateToLastEditLocation"
},
{
"key": "cmd+y",
"command": "workbench.action.editor.changeLanguageMode"
},
{
"key": "cmd+k m",
"command": "-workbench.action.editor.changeLanguageMode"
},
{ "key": "shift+cmd+L", "command": "editor.action.smartSelect.expand"},
{ "key": "shift+cmd+R", "command": "editor.action.smartSelect.shrink"},
{
"key": "shift+cmd+\\",
"command": "workbench.action.splitEditorDown"
},
{ "key": "ctrl+tab", "command": "workbench.action.openPreviousEditorFromHistory" },
{ "key": "ctrl+tab", "command": "workbench.action.openPreviousEditorFromHistory", "when": "inQuickOpen" },
]
// -- VSCode Extensions in use --
// Version: 1.42.0
// Extension list generated with `$ code --list-extensions` command
// adpyke.vscode-sql-formatter
// akamud.vscode-theme-onedark
// dbaeumer.vscode-eslint
// donjayamanne.githistory
// esbenp.prettier-vscode
// Gruntfuggly.todo-tree
// jakebathman.mysql-syntax
// jeff-hykin.better-dockerfile-syntax
// jpoissonnier.vscode-styled-components
// mikestead.dotenv
// ms-azuretools.vscode-docker
// PKief.material-icon-theme
// Tyriar.sort-lines
// vscode-icons-team.vscode-icons
// vscodevim.vim
// WallabyJs.quokka-vscode
// wix.vscode-import-cost
// -- VSCode Extensions in use --
{
"material-icon-theme.folders.theme": "classic",
"files.trimTrailingWhitespace": true,
"explorer.compactFolders": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"editor.codeLens": true,
"editor.rulers": [
80,
110
],
"editor.copyWithSyntaxHighlighting": false,
"editor.dragAndDrop": false,
"editor.fastScrollSensitivity": 10,
"editor.scrollBeyondLastLine": false,
"editor.fontSize": 13,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.tslint": false,
"source.fixAll.eslint": false,
},
"editor.fontFamily": "Menlo For Powerline",
"editor.renderWhitespace": "all",
"editor.lineHeight": 28,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.minimap.enabled": false,
// Terminal Settings
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.fontFamily": "Menlo",
"terminal.integrated.fontSize": 12,
"terminal.integrated.lineHeight": 1.5,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.rendererType": "canvas",
"emmet.triggerExpansionOnTab": true,
// Workbench customizations
"workbench.statusBar.visible": true,
"workbench.colorTheme": "Atom One Dark",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.showTabs": true,
"workbench.activityBar.visible": false,
"workbench.iconTheme": "vscode-icons",
"workbench.sideBar.location": "right",
"workbench.colorCustomizations": {
"activityBar.background": "#111111",
"titleBar.activeBackground": "#111111",
"tab.activeBackground": "#444444",
"tab.hoverBackground": "#000000",
"tab.hoverBorder": "#cccccc",
"tab.activeBorder": "#888888",
"editorGroupHeader.tabsBorder": "#666666",
"terminalCursor.foreground": "#ffffff",
"button.background": "#444444",
"button.foreground": "#ffffff",
"input.background": "#111111",
"inputOption.activeBorder": "#000000",
"textPreformat.foreground": "#ffffff",
"list.focusBackground": "#000000",
"list.hoverBackground": "#474747",
"focusBorder": "#000000",
"statusBar.background": "#272C35",
"statusBar.border": "#3b3b3b",
"statusBar.noFolderBackground": "#2323ee",
"statusBar.debuggingBackground": "#2323ee"
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/vendor": true
},
"javascript.updateImportsOnFileMove.enabled": "always",
"window.zoomLevel": 0,
"files.autoSave": "off",
// Show fancy incoming changes
"typescript.updateImportsOnFileMove.enabled": "always",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"search.exclude": {
"**/build": true,
"**/dist": true,
"**/vendor": true
},
"update.mode": "manual",
"breadcrumbs.enabled": true,
// VIM
"vim.easymotion": false,
"vim.useSystemClipboard": true,
"vim.visualstar": true,
"vim.incsearch": true,
"vim.sneak": false,
"vim.hlsearch": true,
"vim.surround": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": [
"<Esc>"
]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<C-n>"],
"commands": [":nohl"]
},
{
"before": ["Z", "Z"],
"commands": [":wq"]
},
{
"before": [":"],
"commands": ["workbench.action.showCommands"]
}
],
"vim.statusBarColorControl": false,
"extensions.ignoreRecommendations": true,
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"Dockerfile": "dockerfile"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.lineNumbers": "on",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment