I've grown accustomed to Webstorm's "Extend Selection" shortcut which grows the selection to the next special character.
Example (if the cursor is somewhere in the "someObjectProperty"and the shortcut is activated):
var foo = someObject.someObjectProperty.subProperty;
<-- selection 1 -->
<------ selection 2 --------->
<-------------- selection 3 ------------>
Now that I've switched to Visual Studio Code, the closest to that type of shortcut I've found is 'editor.action.smartSelect.grow' shortcut
However, while it is similar, it's not the same. Using the same example (if the cursor is somewhere in the "someObjectProperty" and the shortcut is activated):
var foo = someObject.someObjectProperty.subProperty;
<---------------- selection 1 -------------->
<------------------- selection 2 ------------------>
Is there anything similar in VS Code as the Extend Selection in WebStorm as described above?
While there is no such shortcut/command that comes with VS Code there is third party extension that can be easily installed: There's still no such thing, the third party plugins are nowhere near what Webstorm/Idea does, here's an incomplete visual gap analysis on how they can't be mentioned on the same page.
From what I saw there is no IntelliJ "extend selection" equivalent in VS Code. As another answer says there is a plugin for it though. Hi Alpâr, thanks for leaving a comment. I legitimately don't understand the Downvotes to my answer.
WebStorm provides several possibilities to learn shortcuts: Find Action is the most important command that enables you to search for commands and settings across all menus and tools. Press Ctrl+Shift+A and start typing to get a list of suggested actions. Then select the necessary action and press Enter to execute it.
You can open the terminal on VS Code with a shortcut, but in WebStorm there's always a tab for that. For once I got used to a button instead of a shortcut. This plugin does the trick by adding a toggle button to your interface.
While there is no such shortcut/command that comes with VS Code there is third party extension that can be easily installed:
ext install expand-region
More info on the expand-region command:
https://marketplace.visualstudio.com/items?itemName=letrieu.expand-region
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With