Eclipse Tips : Block Selection in Eclipse (ALT + SHIFT + A)

There are several awesome features hidden in the Eclipse IDE which helps the programmers to do the coding more efficiently. One of the short cut is to block select the text and modify it easily. If you have multiple lines of text which are looking uniform and required similar changes for each line, then this block select mode would be god send for you. You can use the “ALT + SHIFT + A” to enable the block select in Eclipse editor. Once it is enabled, you can make the changes.Again pressing”ALT + SHIFT + A” will disable the block select mode.

Lets look at the below screenshots for more details.

ALT + SHIFT + A  for Block Selection in Eclipse

Block Selection in Eclipse

Modify all the lines simultaneously after enabling the block selection.

Block Selection in Eclipse Example

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This

Share this post with your friends!