0

I'd like to know how to select text between curly brackets, with just two or three shortcut keys.

E.g.: If I have code like this:

System.out.println("Hello World");

only the text "Hello World" should be selected.

4

2 回答 2

4

根据文档,您可以使用:

在 Windows/Linux 上

Ctrl+W/Ctrl+Shift+W

在 MacOS 上

⌥↑/⌥↓

对快捷方式的每次后续调用都会选择增加范围的代码(或减少,对于第二个快捷方式)。

于 2021-06-15T11:32:58.390 回答
0

试试这个插件: https ://plugins.jetbrains.com/plugin/11322-bracket-selection

“默认鼠标快捷方式:alt button1 双击或按住 alt -> 用人类术语在括号之间的任意位置双击左键”

于 2021-06-15T11:31:01.943 回答