eclipse multiple text selection like sublime text 2

is there an option or plugin for eclipse which would enable multiple simultaneous selections in the same editor.

In sublime text, selecting some text and then pressing Ctrl+d will add next instance of the same text to the selection if possible. After selecting the instances needed the editor has multiple carrets (not necessarily on the same or adjacent columns and rows). In this mode it is possible to move all cursors forward or back simultaneously and to edit all instances of text simuntaneously.

I find this feature very usefull and miss it sorely in eclipse..


This Eclipse plugin attempts to provide this feature: https://github.com/caspark/eclipse-multicursor. From the README:

What is this?

A work-in-progress attempt to provide Sublime-Text-like multi cursor support for text editors in the Eclipse IDE.

What works?

  • Multiple identical lines can be edited simultaneously using Eclipse linked mode editing (similar to existing "rename in file" functionality)

Next steps

  • "select next" functionality + associated editing using Eclipse linked mode

  • "find next" + associated editing

  • editing of non-identical text / editing without using linked mode

  • split selection to lines

  • regexp support for find next


This feature is available in LiClipse.

See it in action (more towards the end of the video).

It supports linking with Ctrl+K, unlink with Shift+Alt+K, Ctrl+Alt+mouse double click to select words or Ctrl+Alt+Mouse to make a selection of a region (or just end lines).


Preferences>General>keys>Rename - refactoring I changed the binding to command + shift + R when > Editing Text. Sorry for bringing up an old question, stumbled upon it after searching google for the problem


Alt + Shift + A, then you can hold shift and use the cursor in multiple lines.