Skip to content

Instantly share code, notes, and snippets.

@cevhyruz
Last active January 22, 2018 15:16
Show Gist options
  • Save cevhyruz/e166f595613742b43679d0fbc4546a5b to your computer and use it in GitHub Desktop.
Save cevhyruz/e166f595613742b43679d0fbc4546a5b to your computer and use it in GitHub Desktop.
vscode settings
//Place your key bindings in this file to overwrite the defaults
[
//----- Terminal ------//
// toggle terminal
{
"key": "ctrl+j",
"command": "workbench.action.terminal.toggleTerminal"
},
// create new terminal instance
{
"key": "ctrl+n",
"command": "workbench.action.terminal.new",
"when": "terminalFocus"
},
// navigate through terminals
// Note: while in --normal mode-- delete a line using vim's 'd' command
// and [ctrl + shift + k] in --Insert Mode--
{
"key": "ctrl+shift+k",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+j",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
// rename terminal
{
"key": "ctrl+shift+,",
"command": "workbench.action.terminal.rename"
},
// kill terminal
{
"key": "ctrl+k",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
//----- Sidebar ------ //
// toggle sidebar visibility
{
"key": "meta+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
// ------- Notification ------ //
// confirm/cancel notif
{
"key": "j j",
"command": "workbench.action.closeMessages",
"when": "globalMessageVisible"
},
// ---- Explorer ------ //
// Deleting a file
{
"key": "shift+d",
"command": "deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "shift+delete",
"command": "-deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
// renaming file
{
"key": "shift+r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "f2",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
// creating newfile
{
"key": "shift+n",
"command": "explorer.newFile",
"when": "filesExplorerFocus"
},
// creating newfolder
{
"key": "ctrl+n",
"command": "explorer.newFolder",
"when": "filesExplorerFocus"
},
// Stage file in git
{
"key": "ctrl+k s",
"command": "git.stage"
},
// close active editor
{
"key": "ctrl+shift+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "ctrl+k u",
"command": "git.unstage"
}
{
"keyboard.dispatch": "keyCode",
"window.zoomLevel": 0,
"workbench.colorTheme": "Visual Studio Dark",
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"zenMode.fullScreen": false,
"zenMode.hideStatusBar": false,
"vim.statusBarColorControl": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment