ecipse select multiple lines key shortcut code example
Example: eclipse add cursor
Press alt + shift + A to Toggle block selection
(Toggle block / column selection in the current text editor),
this will let you write vertically in eclipse,
then you can easily do this.