Duplicate lines in editor [message #280987] |
Mon, 14 February 2005 20:26 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #281045 is a reply to message #281042] |
Mon, 14 February 2005 23:31 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #281069 is a reply to message #281066] |
Tue, 15 February 2005 09:10 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03755 seconds