Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code shortcut equivalent to Webstorm / IntelliJ Extend Selection

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?

like image 367
Nik Avatar asked Jun 23 '16 15:06

Nik


People also ask

Is there a WebStorm/idea shortcut in VS Code?

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.

Is there an IntelliJ extension selection equivalent in VS Code?

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.

How to learn WebStorm shortcuts?

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.

Is there a way to open the terminal in WebStorm?

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.


1 Answers

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

like image 57
Nik Avatar answered Sep 29 '22 18:09

Nik