Last active
November 10, 2024 15:09
-
-
Save espenbjorkeng/484871484d4bf13ce23d8d115e2e8ef5 to your computer and use it in GitHub Desktop.
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
// vscode-keybindings for navigation with I/J/K/L and additional functionality with surrounding characters | |
// Place your key bindings in this file to overwrite the defaults | |
// ALT + I/J/K/L: up/left/down/right | |
// ALT + SHIFT + I/J/K/L: mark text up/left/down/right | |
// CTRL + J/L: send cursor to start/end of line | |
// CTRL + ALT + J/L: send cursor to start/end of word | |
// CTRL + ALT + U/O: send cursor to "wordPartLeft"/"wordPartRight" | |
// CTRL + ALT + SHIFT + U/O: mark from cursor to "wordPartLeft"/"wordPartRight" | |
// CTRL + ALT + Y: got to declaration | |
// CTRL + I/K: add/remove another cursor up/down | |
// -- IF LINEJUMPER IS INSTALLED -- // | |
// CTRL + ALT + I/K: move cursor 10 lines up/down | |
// CTRL + ALT + SHIFT + I/K: mark 10 lines up/down | |
[ | |
{ | |
"key": "ctrl+shift+i", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+k", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+k", | |
"command": "cursorDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+i", | |
"command": "cursorUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+l", | |
"command": "cursorRight", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+j", | |
"command": "cursorLeft", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+k", | |
"command": "cursorDownSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+i", | |
"command": "cursorUpSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+l", | |
"command": "cursorRightSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+j", | |
"command": "cursorLeftSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+ctrl+l", | |
"command": "cursorWordEndRight", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+ctrl+j", | |
"command": "cursorWordStartLeft", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+l", | |
"command": "cursorWordRightSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+j", | |
"command": "cursorWordLeftSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+o", | |
"command": "cursorEndSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+u", | |
"command": "cursorHomeSelect", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "cursorEnd", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "cursorHome", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+alt+y", | |
"command": "editor.action.goToDeclaration" | |
}, | |
{ | |
"key": "ctrl+i", | |
"command": "cursorColumnSelectUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "cursorColumnSelectDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+o", | |
"command": "cursorWordPartRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+u", | |
"command": "cursorWordPartLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+ctrl+o", | |
"command": "cursorWordPartRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+ctrl+u", | |
"command": "cursorWordPartLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "alt+ctrl+k", | |
"command": "lineJumper.moveDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+ctrl+i", | |
"command": "lineJumper.moveUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+k", | |
"command": "lineJumper.selectDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+ctrl+i", | |
"command": "lineJumper.selectUp", | |
"when": "editorTextFocus" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ EryouHao may I know what you mean by
reset
here? (I am experiencing the same issue).Is this character something you're seeing in VS Code only, or any text editor when you press alt + i?
it's the normal mapping for
option + i
on mac:https://www.webnots.com/option-or-alt-key-shortcuts-to-insert-symbols-in-mac-os-x/
I guess I'll just map
alt+o
to up... lol