Swazzer_09
Swazzer_09

Reputation: 1

How to select all things inside brackets in Intellij idea?

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.

Upvotes: 0

Views: 1093

Answers (2)

M. Dudek
M. Dudek

Reputation: 1085

Based on documentation, you can use:

On Windows/Linux

Ctrl+W / Ctrl+Shift+W

On MacOS

⌥↑ / ⌥↓

Each subsequent call to the shortcut selects an increasing range of code (or decreasing, for second shortcut).

Upvotes: 8

RoadJDK
RoadJDK

Reputation: 11

try this plugin out: https://plugins.jetbrains.com/plugin/11322-bracket-selection

"default mouse shortcut: alt button1 doubleclick or hold alt -> double left click anywhere in between brackets in human terms"

Upvotes: 0

Related Questions