Skip to content

Instantly share code, notes, and snippets.

@tomekstefaniak
Last active May 22, 2025 18:47
Show Gist options
  • Save tomekstefaniak/485451557ca3e6ca4833e476eff13d17 to your computer and use it in GitHub Desktop.
Save tomekstefaniak/485451557ca3e6ca4833e476eff13d17 to your computer and use it in GitHub Desktop.
Fancy binds for Visual Studio Code
// Me: https://gist.github.com/tomekstefaniak
// Paste the content of this file into keybindings.json file in Visual Studio Code
// ⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⢰⣿⡿⠗⠀⠠⠄⡀⠀⠀⠀⠀
// ⠀⠀⠀⠀⡜⠁⠀⠀⠀⠀⠀⠈⠑⢶⣶⡄
// ⢀⣶⣦⣸⠀⢼⣟⡇⠀⠀⢀⣀⠀⠘⡿⠃
// ⠀⢿⣿⣿⣄⠒⠀⠠⢶⡂⢫⣿⢇⢀⠃⠀
// ⠀⠈⠻⣿⣿⣿⣶⣤⣀⣀⣀⣂⡠⠊⠀⠀
// ⠀⠀⠀⠃⠀⠀⠉⠙⠛⠿⣿⣿⣧⠀⠀⠀
// ⠀⠀⠘⡀⠀⠀⠀⠀⠀⠀⠘⣿⣿⡇⠀⠀
// ⠀⠀⠀⣷⣄⡀⠀⠀⠀⢀⣴⡟⠿⠃⠀⠀
// ⠀⠀⠀⢻⣿⣿⠉⠉⢹⣿⣿⠁⠀⠀⠀⠀
// ⠀⠀⠀⠀⠉⠁⠀⠀⠀⠉⠁⠀⠀⠀⠀⠀
[
{
"key": "alt+e",
"command": "cursorEnd",
"when": "textInputFocus"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "alt+s",
"command": "cursorLineStart"
},
{
"key": "alt+d",
"command": "cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "alt+a",
"command": "cursorWordStartLeft"
},
{
"key": "shift+alt+j",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+l",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "shift+right",
"command": "-cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+r",
"command": "-editor.action.refactor",
"when": "editorHasCodeActionsProvider && textInputFocus && !editorReadonly"
},
{
"key": "shift+alt+u",
"command": "cursorWordLeftSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+left",
"command": "-cursorWordLeftSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "shift+alt+o",
"command": "cursorWordRightSelect"
},
{
"key": "shift+alt+i",
"command": "cursorLineEndSelect"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment