Skip to content

Instantly share code, notes, and snippets.

@mahmoodkhan
Created October 20, 2019 02:43
Show Gist options
  • Save mahmoodkhan/cd04c28003934f90d22c17fde1436a27 to your computer and use it in GitHub Desktop.
Save mahmoodkhan/cd04c28003934f90d22c17fde1436a27 to your computer and use it in GitHub Desktop.
VS Code settings and keybindings
// The location o this file: ~/Library/Application Support/Code/User/keybindings.json
[
{
"key": "cmd+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "workbench.action.showAllEditors"
},
{
"key": "alt+cmd+tab",
"command": "-workbench.action.showAllEditors"
},
{
"key": "cmd+b",
"command": "workbench.action.showAllEditors"
},
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "ctrl+z",
"command": "cursorEnd",
"when": "textInputFocus"
}
]
{
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
"editor.tokenColorCustomizations": {
"comments": "#b3bec470"
},
"breadcrumbs.enabled": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.enabled": false,
"editor.formatOnPaste": true,
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"gitlens.advanced.messages": {
"suppressLineUncommittedWarning": true,
"suppressShowKeyBindingsNotice": true
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"node_modules/": true,
"**/.env": true,
"**/*.pyc": true,
"**/.vscode": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true
},
"editor.fontSize": 14,
"editor.cursorWidth": 5,
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "boundary",
"editor.rulers": [
119
],
"workbench.editor.enablePreview": false,
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"window.zoomLevel": 0,
"vim.handleKeys": {
"<C-d>": true,
"<C-a>": false,
"<C-e>": false
},
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
},
{
"before": [
"<C-a>"
],
"after": [
"<C-o>_"
]
},
{
"before": [
"<C-e>"
],
"after": [
"<C-o>$"
]
},
{
"before": [
"<C-r>"
],
"after": [],
"commands": [
{
"command": "redo"
}
]
}
],
"gitlens.views.fileHistory.enabled": true,
"gitlens.views.lineHistory.enabled": true,
"gitlens.defaultDateStyle": "absolute",
"gitlens.defaultDateFormat": "MMM D, YYYY h:m:s",
"gitlens.hovers.currentLine.over": "line",
"gitlens.hovers.currentLine.enabled": false,
"C_Cpp.formatting": "Disabled",
"editor.fontFamily": "Monaco, Menlo, 'Courier New', monospace",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue"
}
@mahmoodkhan
Copy link
Author

mahmoodkhan commented Oct 20, 2019

Both files are located at ~/Library/Application Support/Code/User/

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