Eclipse's Awesome Block Selection Mode
Join the DZone community and get the full member experience.Join For Free
this post is about an awesome eclipse feature, that is completely underestimated and hidden in the menu. yet, it is so useful in so many situations. the awesome “block selection mode” which can be toggled through alt-shift-a on windows. here’s an example challenge for the block selection mode:
and my answer :
step 1: paste
paste your formatted sql statement verbatim into your java file
step 2: write opening quotes
notice the highlighted button, the sixth from the left. that’s the awesome “block selection mode” (alt-shift-a on windows). it lets you write opening quotes on each selected line at the same position
step 3: write closing quotes and concatenation
apply the same technique for the closing quotes and the concatenation sign (`+`)
step 4: fix the semi-colon
no comment needed here.
awesome eclipse feature, no?
Published at DZone with permission of Lukas Eder, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.