Eclipse Gems, Tips & Tricks: Text Block Selection

This article is part of a ‘mini series’ about hidden gems, tips and tricks around Eclipse.
The topic of this one is how to do a ‘block’ selection in the text editor.

Eclipse Text Block Selection

Eclipse Text Block Selection

To start a block selection use Alt+Shift+A or use the icon on the toolbar:

Toggle Block Selection

Toggle Block Selection

Then use the mouse to mark a block in the text editor:

Block selection

Block selection

Then I can cut or copy the selected text:

Block deleted

Block deleted

While in block mode (indicated by the cross-hair cursor) I can insert the copied text block:

Inserted Text Block

Inserted Text Block

To exit the block selection mode, use the toolbar button again or use Alt+Shift+A.

Happy Blocking 🙂

Links

 

17 thoughts on “Eclipse Gems, Tips & Tricks: Text Block Selection

  1. Nice trick, now I don’t have to copy to npp to do just copy paste. Can you please make post about importing/making Cmake projects .

    Like

  2. It’s a really neat feature, although I prefer multi cursor editing as in Atom. It’s more flexible and faster accessible. But the block selection does quite a good job.

    Like

  3. Pingback: Eclipse Gems, Tips & Tricks: Importing Projects | MCU on Eclipse

  4. Pingback: Eclipse Gems, Tips & Tricks: Close and Open Projects | MCU on Eclipse

  5. Pingback: Eclipse Gems, Tips &Tricks: Black Theme | MCU on Eclipse

  6. Pingback: Eclipse Gems, Tips & Tricks: Faster Debugger Start | MCU on Eclipse

  7. Pingback: Eclipse Gems, Tips & Tricks: Project Filter | MCU on Eclipse

  8. Pingback: Eclipse Gems, Tips & Tricks: RT(F)M | MCU on Eclipse

  9. Pingback: Eclipse Gems, Tips &Tricks: Show in System Explorer | MCU on Eclipse

  10. Pingback: Eclipse Gems, Tips & Tricks: Open Declaration | MCU on Eclipse

  11. Pingback: Eclipse Gems, Tips & Tricks: Code Completion | MCU on Eclipse

  12. Pingback: Eclipse Gems, Tips & Tricks: Highlight Usage and Definition | MCU on Eclipse

  13. Pingback: Eclipse Gems, Tips & Tricks: Block Comments | MCU on Eclipse

  14. Pingback: Eclipse Gems, Tips & Tricks: Working Sets | MCU on Eclipse

  15. Pingback: Eclipse Gems, Tips & Tricks: Code Folding | MCU on Eclipse

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.