Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 Incremental Selection

I want to know is there an analog command in Sublime to Pycharms Cmd(Ctrl)+W?

This is what she does in Pycharm:

  • Press Ctrl+W to select the word where the caret is currently located.
  • Press Ctrl+W successively to extend selection to the next containing node (for example, an expression, a paired tag, an entire conditional block, a method body, a class, a group of vararg arguments, etc.)

While extending selection, keep in mind the following:

  • Pressing Ctrl+W successively in plain text or comments extends the selection first to the current sentence, then to the current paragraph.
  • Pressing Ctrl+W successively inside a list, dictionary, or a list of arguments or parameters, selects an element of the list, then the right or left comma and a neighbouring space (if any), then the contents of the list without parentheses, and finally the enclosing parentheses.
  • Press Ctrl+Shift+W to shrink selection in the reverse order (from the outermost container to the word where the caret currently resides). Tip

The selection extends or shrinks according to capitalization, if the Use "CamelHumps" words is enabled on the Editor. Smart Keys settings page.

If you want to make selection according to capitalization, using double-click, make sure that the option Honor CamelHumps words... is selected on the Editor settings page.

like image 911
Ellochka Cannibal Avatar asked Oct 11 '14 09:10

Ellochka Cannibal


1 Answers

Without using a plugin:

  • Expand selection to scope (Ctrl + Shift + Space / CMD + Shift + Space)
  • Expand selection to brackets (Ctrl + Shift + M / Ctrl + Shift + M)
  • Expand selection to indentation (Ctrl + Shift + J / CMD + Shift + J)
like image 195
Daniel Romero Avatar answered Nov 10 '22 12:11

Daniel Romero