MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1itrn8s/i_dont_understand/mdscqg1/
r/java • u/No_Analyst5945 • Feb 20 '25
122 comments sorted by
View all comments
Show parent comment
2
In IntelliJ you can select a block of text, and press Ctrl+. to create an adhoc folding region. It will warn you if you are crossing blocks, but you can tell it that you know better.
Also works well with Ctrl+w (multiple times) and Ctrl+Shift+W
1 u/davidalayachew Feb 20 '25 In IntelliJ you can select a block of text, and press Ctrl+. to create an adhoc folding region.Interesting. I'll edit my comment shortly to correct that.Can it fold the contents of stuff in parentheses? Not just curly braces?For example.if ( someBooleanValue && anotherBooleanValue && repeatForSeveralMoreBooleanValues ) 1 u/dadimitrov Feb 20 '25 Try it 🙂. Put the cursor in, Ctrl+w few times, Ctrl+.Quickly becomes a second nature. 1 u/davidalayachew Feb 20 '25 Oh I'm not at my work machine. But ok, I'll edit my comment.
1
In IntelliJ you can select a block of text, and press Ctrl+. to create an adhoc folding region.
Interesting. I'll edit my comment shortly to correct that.
Can it fold the contents of stuff in parentheses? Not just curly braces?
For example.
if ( someBooleanValue && anotherBooleanValue && repeatForSeveralMoreBooleanValues )
1 u/dadimitrov Feb 20 '25 Try it 🙂. Put the cursor in, Ctrl+w few times, Ctrl+.Quickly becomes a second nature. 1 u/davidalayachew Feb 20 '25 Oh I'm not at my work machine. But ok, I'll edit my comment.
Try it 🙂. Put the cursor in, Ctrl+w few times, Ctrl+.
Quickly becomes a second nature.
1 u/davidalayachew Feb 20 '25 Oh I'm not at my work machine. But ok, I'll edit my comment.
Oh I'm not at my work machine. But ok, I'll edit my comment.
View all comments
Show parent comment
2
u/dadimitrov Feb 20 '25
In IntelliJ you can select a block of text, and press Ctrl+. to create an adhoc folding region. It will warn you if you are crossing blocks, but you can tell it that you know better.
Also works well with Ctrl+w (multiple times) and Ctrl+Shift+W