Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Duplicate lines in editor
Duplicate lines in editor [message #280987] Mon, 14 February 2005 20:26 Go to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

Coming from IntelliJ I am used to the ability of the editor to duplicate a
line with the <ctrl>d keystroke. Is there anything similar in Eclipse?

Thanks
--
Gary
Re: Duplicate lines in editor [message #280998 is a reply to message #280987] Mon, 14 February 2005 21:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Gary Udstrand wrote:

> Coming from IntelliJ I am used to the ability of the editor to duplicate a
> line with the <ctrl>d keystroke. Is there anything similar in Eclipse?

Well, in 3.1M4 there's something called "duplicate lines", ctrl-alt-up.
But either I don't know what "up" means or it doesn't do anything for me.

Bob Foster
Re: Duplicate lines in editor [message #281000 is a reply to message #280998] Mon, 14 February 2005 21:13 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
"Bob Foster" <bob@objfac.com> wrote in message
news:421112C4.4030904@objfac.com...
> Gary Udstrand wrote:
>
>> Coming from IntelliJ I am used to the ability of the editor to duplicate
>> a
>> line with the <ctrl>d keystroke. Is there anything similar in Eclipse?
>
> Well, in 3.1M4 there's something called "duplicate lines", ctrl-alt-up.
> But either I don't know what "up" means or it doesn't do anything for me.
>
> Bob Foster

Do we need to draw a picture :-)

On I20050214-927 Ctrl-Alt-Up arrow key duplicates the selected line for me.

HTH
Darins
Re: Duplicate lines in editor [message #281042 is a reply to message #281000] Mon, 14 February 2005 23:22 Go to previous messageGo to next message
Martin Kersten is currently offline Martin KerstenFriend
Messages: 306
Registered: July 2009
Senior Member
Hi guys,

>>> Coming from IntelliJ I am used to the ability of the editor to duplicate
>>> a
>>> line with the <ctrl>d keystroke. Is there anything similar in Eclipse?
>>
>> Well, in 3.1M4 there's something called "duplicate lines", ctrl-alt-up.
>> But either I don't know what "up" means or it doesn't do anything for me.
>>
>> Bob Foster
>
> Do we need to draw a picture :-)
>
> On I20050214-927 Ctrl-Alt-Up arrow key duplicates the selected line for
> me.

Not even the line its like using Alt+Up/Down. Select several lines (or the
line
your caret is into) and press alt+up/down, so you will move it around.

If you additonal press CTRL you dont move you just duplicate it (up or
down).

By the way I like Ctrl+D!


Martin (Kersten)
Re: Duplicate lines in editor [message #281045 is a reply to message #281042] Mon, 14 February 2005 23:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

On Tue, 15 Feb 2005 00:22:13 +0100, Martin Kersten wrote:

> Hi guys,
>
>>>> Coming from IntelliJ I am used to the ability of the editor to duplicate
>>>> a
>>>> line with the <ctrl>d keystroke. Is there anything similar in Eclipse?
>>>
>>> Well, in 3.1M4 there's something called "duplicate lines", ctrl-alt-up.
>>> But either I don't know what "up" means or it doesn't do anything for me.
>>>
>>> Bob Foster
>>
>> Do we need to draw a picture :-)
>>
>> On I20050214-927 Ctrl-Alt-Up arrow key duplicates the selected line for
>> me.
>
> Not even the line its like using Alt+Up/Down. Select several lines (or the
> line
> your caret is into) and press alt+up/down, so you will move it around.
>
> If you additonal press CTRL you dont move you just duplicate it (up or
> down).
>
> By the way I like Ctrl+D!
>
>
> Martin (Kersten)

Thanks to all. I am really starting to like Eclipse but I really wish
there was an Eclipse for IntelliJ users document somewhere. :-)

--
Gary
Re: Duplicate lines in editor [message #281056 is a reply to message #281000] Tue, 15 February 2005 00:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Darin Swanson wrote:
> "Bob Foster" <bob@objfac.com> wrote in message
>>Well, in 3.1M4 there's something called "duplicate lines", ctrl-alt-up.
>>But either I don't know what "up" means or it doesn't do anything for me.
>>
>>Bob Foster
>
> Do we need to draw a picture :-)

I'll never live that one down.

> On I20050214-927 Ctrl-Alt-Up arrow key duplicates the selected line for me.

Didn't for me with 3.1M4. But I found out why. To test it I created a
one-line file. It doesn't work for the first line in a file!

Bob
Re: Duplicate lines in editor [message #281066 is a reply to message #281056] Tue, 15 February 2005 09:02 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Bob Foster wrote:
> Didn't for me with 3.1M4. But I found out why. To test it I created a
> one-line file. It doesn't work for the first line in a file!

The problem is really with the last line, not the first - the semantics
of 'line' are not too clear in the case where you don't have a delimiter...

-tom
Re: Duplicate lines in editor [message #281069 is a reply to message #281066] Tue, 15 February 2005 09:10 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Tom Eicher wrote:
> Bob Foster wrote:
>
>> Didn't for me with 3.1M4. But I found out why. To test it I created a
>> one-line file. It doesn't work for the first line in a file!
>
>
> The problem is really with the last line, not the first - the semantics
> of 'line' are not too clear in the case where you don't have a delimiter...

Big <sigh/> on that one. Yes, they are. That's called sloppy code.

Bob
Previous Topic:What is In place editor?
Next Topic:How to refresh a project programmatically?
Goto Forum:
  


Current Time: Thu Apr 25 10:08:32 GMT 2024

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

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

Back to the top