select forward s-expression

已回答

How do I select a symbolic expression in IntelliJ?

In emacs i can use Meta-Ctl-Space to select the expression to the right of the cursor. If it is a string then selected is from the open quote to closing quote; if it is an open paren/bracket/brace, then the matching braces and everything between is selected; if it is just a word, then everything between word boundaries are selected (depending on how words are define in the current mode).

and If I press Meta-Ctl-Space again, then the next expression gets selected also.

 

Is there a way to do something at lest similar in IntelliJ.

 

An example would be the following.  If my cursor is sitting before the following

`def name (args) { ... body of many lines, and several screenfuls ...}`

In emacs I can press Meta-Ctl-Space 4 times to select from "def" to the end of the close '}'

 

0

Try Editor Actions | Move Caret Forward a Paragraph with Selection action. Also there is an Editor Actions | Move Caret to Code Block End (with Selection) action. You could also check this plugin: https://plugins.jetbrains.com/plugin/10045-emacs-patched 

Feel free to file a request at https://youtrack.jetbrains.com/issues/IDEA for the functionality you have not found. Thank you.

0

Thanks.  How can I access an "edit action",   I don't see such a menu.

0

The action does not have default shortcut. You can assign it in Keymap settings: 

0

请先登录再写评论。