An extension that allows you to move selection by a word in camel-case string. This comes especially handy if you want to fix a typo in the middle of the variable, or just reword a part of it.
- Support for unicode characters.
- Support for multiple selections.
| Hotkey | Description |
|---|---|
CTRL+ALT+RIGHT |
Move caret to the next word |
CTRL+ALT+LEFT |
Move caret to the previous word |
CTRL+SHIFT+ALT+RIGHT |
Expands selection to the next word |
CTRL+SHIFT+ALT+LEFT |
Expands selection to the previous word |
CTRL+ALT+BACKSPACE |
Removes previous word |
CTRL+ALT+DELETE (CTRL+SHIFT+ALT+DELETE on Windows) |
Removes next word |
This extension overrides several VSCode default hotkeys, like CTRL+ALT+RIGHT hotkey which is bound to workbench.action.moveEditorToNextGroup command (as of VSCode 1.10.2).
If you'd like to use a different hotkey refer to Visual Studio Code's Key Bindings Customization article. All the contributed commands starts with selectPartOfWord.
Please note that this extension is in rather early stage of development.
This extension is fully open source, available at https://github.com/mlewand/vscode-select-part-of-word.
You can always ping me at Twitter @m_lewand.
The code is distributed under MIT license.
- Image at
assets/icon.svgdistributed under Creative Commons license, obtained from Wikimedia Commons.
