Jin Kwon
Jin Kwon

Reputation: 21978

How can I align parenthesis block?

With following codes,

bytes[i] = (byte) ((Character.digit(hex.charAt(j), 16) << 4)
        | Character.digit(hex.charAt(++j), 16));

How can I align contents between ( and )? So I can see following?

bytes[i] = (byte) ((Character.digit(hex.charAt(j), 16) << 4)
                   | Character.digit(hex.charAt(++j), 16));

Which one should I check in Preferences / Editor / CodeStyle / Java / Wrapping and Braces?

Upvotes: 0

Views: 80

Answers (1)

BitfulByte
BitfulByte

Reputation: 4456

You're looking for the Binary expressions / Align when multiline

Enabled: Code style with option enabled

Disabled (default): Code style with option disabled

To quickly find the corresponding code style option, select the code snippet in Editor and invoke Alt+Enter intention action then select Adjust code style settings from the popup: enter image description here

then locate the option: enter image description here

Upvotes: 2

Related Questions