Skip to main content



      Home
Home » Newcomers » Newcomers » Moving lines of code without doing cut and paste(editing in Eclipse)
Moving lines of code without doing cut and paste [message #1704194] Sat, 08 August 2015 10:46 Go to next message
Eclipse UserFriend
Is there a way in Eclipse to move lines or even sections of come from one place to another (in the same source code) without having to cut and paste. I suspect there is not. I always found this very handy on the Mainframe using ISPF. I do have a PC version of ISPF but I would rather just stay right in Eclipse.
Re: Moving lines of code without doing cut and paste [message #1704196 is a reply to message #1704194] Sat, 08 August 2015 11:09 Go to previous messageGo to next message
Eclipse UserFriend
On 08/08/2015 08:46 AM, Rod Hittle wrote:
> Is there a way in Eclipse to move lines or even sections of come from
> one place to another (in the same source code) without having to cut and
> paste. I suspect there is not. I always found this very handy on the
> Mainframe using ISPF. I do have a PC version of ISPF but I would rather
> just stay right in Eclipse.

You can select lines, a block of code, then click and drag it.
Re: Moving lines of code without doing cut and paste [message #1704211 is a reply to message #1704196] Sat, 08 August 2015 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Russell.
That is a lot better than cut and paste.
Sadly, to me at least, not as handy as having line commands like ISPF does.
Re: Moving lines of code without doing cut and paste [message #1704213 is a reply to message #1704194] Sat, 08 August 2015 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Move them how?
Re: Moving lines of code without doing cut and paste [message #1704267 is a reply to message #1704211] Sun, 09 August 2015 22:54 Go to previous messageGo to next message
Eclipse UserFriend
On 08/08/2015 03:08 PM, Rod Hittle wrote:
> Thanks Russell.
> That is a lot better than cut and paste.
> Sadly, to me at least, not as handy as having line commands like ISPF
> does.
I'm not familiar with ISPF.

You also have Vrapper, a Vim plug-in. That's what I use because I like
power when I edit.
Re: Moving lines of code without doing cut and paste [message #1704275 is a reply to message #1704194] Mon, 10 August 2015 02:07 Go to previous messageGo to next message
Eclipse UserFriend
You can select the code line/section and then press <Alt>+<Up> or <Alt>+<Down> to move.
Re: Moving lines of code without doing cut and paste [message #1704869 is a reply to message #1704267] Mon, 10 August 2015 04:59 Go to previous message
Eclipse UserFriend
Hi,

to move line in the same file;, you can put the cursor on a line or select a block of code and then use ALT+Up and ALT + Down.

To Find all available shortcuts (and configure ones for some specific actions), you can go to Window->Prrferences and Then General->Keys

Regards,
Previous Topic:Help debug mode: Stops at breakpoint, but line is not highligted, no actions selectable
Next Topic:Hierarhical organization of projects
Goto Forum:
  


Current Time: Tue Jul 01 13:19:34 EDT 2025

Powered by FUDForum. Page generated in 0.30087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top