![]() This whole concept of navigating with combinations of CTRL, ALT and I/J/K/L might seem very cumbersome and weird at the beginning, but I got comfortable with it quickly and I've never looked back. You can find it by opening the command palette with CMD/CTRL + SHIFT + P and selecting > Preferences: Open Keyboard Shortcuts (JSON). Visual Studio Code will now let you manipulate keyboard shortcuts in a graphical user interface, but you can also specify each combination in the keybindings.json file. I (almost) never use caps lock, but use CTRL all the time, and the positioning of the Caps Lock-key makes it easier to reach than the CTRL-key. In addition, I mapped the Caps Lock key to CTRL using AutoHotkey. You can find a keybindings.json-gist for it here. CTRL + I/K: Add cursor on line above/below the current cursor position.ALT + SHIFT + U: Mark characters from cursor to start of line.ALT + SHIFT + O: Mark characters from cursor to end of line.CTRL + J/L: Move cursor to start/end of line. ![]() SHIFT + CTRL + I/K: Move marked- or current line up/down.ALT + CTRL + J/L: Move cursor to start/end of word.ALT + SHIFT + I/J/K/L: Mark lines/characters while moving character up/left/down/right.ALT + I/J/K/L: Move cursor up/left/down/right.But jumping in and out of input mode always bothered me, so I created my own set of keybindings to reduce the need for moving my hands from the default position: I enjoy doing as much as possible of my work with my hands locked in one position when navigating, marking, copying, pasting, moving and generating code. ![]() ![]() Keybindingsįeel free to call me lazy, but I got tired of moving my hands over to the mouse to navigate in the editor–and eventually the arrow keys started feeling far, far away from the main letters on the keyboard. These are my main productivity takeaways after using it for JavaScript programming for 3+ years. Visual Studio Code, the biggest open source project on GitHub, is my go-to editor and is used by all developers at SalesScreen. At SalesScreen we write a lot of JavaScript, and I have spent quite a bit of time experimenting with editors, keybindings, snippets and extensions to improve productivity and code quality. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |