Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Keystroke to Slide Block of Text Left/Right

Tags:

eclipse

I know in Eclipse you can slide a line/block of text up and down by using Alt+Up and Alt+Down, but is there a keystroke to slide a chunk of text left or right?

Say I typed this:

int age = getAgeAtDeath("Years", "1980-12-08", "1940-10-09");

Is there any way I can highlight the , "1940-10-09" and slide the chunk left one character at a time? I know I can cut/paste any number of ways so I'm really just looking to know if there's a left/right equivalent of Alt+Up / Alt+Down.

Thanks!

like image 709
Matt Felzani Avatar asked Mar 09 '12 18:03

Matt Felzani


People also ask

How do I move a block of code to the right in Eclipse?

Moving lines left or right, i.e. changing the level of indentation, can be done in almost all code editors using Tab and Shift + Tab . Moving blocks of code up and down can be done in Eclipse using Alt + up and Alt + down .

How do I indent a block of code in Eclipse?

Select your block of text and hit tab.... shift-tab will back-dent it.


1 Answers

There is no command to do that. I've wanted it at times, too. But if you look at the General > Keys in preferences, you can see that there are only commands for Move Lines Up and Move Lines Down.

like image 82
E-Riz Avatar answered Sep 22 '22 19:09

E-Riz