vscode-expand-region
porting sublime-expand-region to visual code
https://github.com/aronwoost/sublime-expand-region
Only support javascript and html now ,it will support python and latex in a future
JavaScript
- Expand selection to word
- Expand selection to quotes (content only)
- Expand selection to quotes (with quotes)
- Expand selection to square braces
- Expand selection to expression
- Expand selection to content of braces (all arguments in this case)
- Expand selection to line
- Expand selection to function body (w/o curly brace)
- Expand selection to function body (with curly brace)
and so on...
HTML/PHP
- Expand selection to word
- Expand selection to quotes (content only)
- Expand selection to quotes (with quotes)
- Expand selection to complete self closing tag
- Expand selection to parent node content
- Expand selection to complete node
- Expand selection to parent node content
and so on...
Using
- Set a keyboard shortcut.
Open "Key Bindings" and add following code:
{
"key": "ctrl+w","command": "expand_region", "when": "editorTextFocus"
},
{
"key": "ctrl+shift+w","command": "undo_expand_region", "when": "editorTextFocus && editorHasSelection"
}
development
- npm install
- npm compile (compile typescript)
- npm test:watch (run mocha for test)
Changelog
0.1.2
0.1.0
- support multi cursor
- fix issue #10 #7
0.0.2
- add feature undo_expand_region
0.0.1
| |