Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:46 Go to next message
Rod Hittle is currently offline Rod HittleFriend
Messages: 14
Registered: August 2015
Junior Member
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 15:09 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 21:08 Go to previous messageGo to next message
Rod Hittle is currently offline Rod HittleFriend
Messages: 14
Registered: August 2015
Junior Member
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 22:45 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3502
Registered: July 2009
Senior Member

Move them how?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Moving lines of code without doing cut and paste [message #1704267 is a reply to message #1704211] Mon, 10 August 2015 02:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 06:07 Go to previous messageGo to next message
Urs Wettstein is currently offline Urs WettsteinFriend
Messages: 2
Registered: August 2015
Junior Member
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 08:59 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 636
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
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: Wed Sep 18 17:41:01 GMT 2019

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

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

Back to the top