NB: To check if you have a key bound, and what it is, you can always press CTRL+ SHIFT+ P and type Add Cursor Below and if there's a keybinding it will show to the right of that text. Then just type " then END then " and all your lines are surrounded by quotes. Keep doing that until you have a cursor in front of all your words. Im using vscodevim.vim version v1.17.2 on macOS In the keyboard shortcuts UI (not the JSON file), searching for extension.vim showed a list of Vim 'Commands' that can be sent to the Vim emulator according to their keybindings For example, after performing the above, searching for extension. Place the cursor at the start of the first line, press CTRL+ ALT+ DOWN to add another cursor below on the next line. What you are after though is not really that efficient like that. Change your language mode with CTRL+ SHIFT+ P and type Change Language Mode ENTER and select something like JavaScript where this is supported. I diid this so that I could easily jump from opening to closing tag in HTML. So this will not work in a "plaintext" file, for example. I created a keyboard shortcut for Matchit: Jump Items to run on shift+5 () when editorTextFocus. The language syntax must define opening and closing braces, e.g. It allows you to dive into using vim modes and motions with little to no configuration. The plugin is an excellent option to try out another way of editing code and get a feel for it. Windows: File > Preferences > Keyboard shortcuts. In this post, I share some tips about using the vim plugin in VSCode. However, if you want to duplicate the line with CTRL+D, then you have to modify the keyboard shortcuts of your VS Code. Selecting some text and pressing " already works in VSCode to surround a single item, and works for multi-line selections as well. These are the default settings: Windows: SHIFT+ALT+ or SHIFT+ALT+.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |