Open to Close Bracket/Quotation mark/Tag selection IntelliJ

扶醉桌前 提交于 2019-12-12 15:16:45

问题


In Eclipse there is the nicest feature, when you hover with the mouse over an Open or Close element (Any Open or close bracket '(', '{', '[', ']', '}', ')', the Quotation Mark ' " ' or the tag ' ' ') and you double click the mouse, Eclipse conveniently selects the content from the opening to the closing (or vise verse, depends on the element you hover over) of the element without selecting the elements.

I love this feature, I love it so much and it would be a great disappointment if it would not be in IntelliJ since I'm now forced to work with Android studio after Google abandoned Eclipse, and I must know if it is doable.

I've found out about the Ctrl + Shift + ('[' || ']'), but this is a specific implementation of a more general case Eclipse has.

Please tell me it is doable...


回答1:


In the Edit menu, you can find "Select Word at Carat". This should have the shortcut "Alt-Up".

While this doesn't immediately select the entire block, used in succession 2-3 times (depending on whether your block is nested on a line or spans multiple lines) will select the entire block.



来源:https://stackoverflow.com/questions/17496100/open-to-close-bracket-quotation-mark-tag-selection-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!