Toad World® Forums

Duplicate Line in editor


#1

Is it possible to Duplicate a Line in the editor, similar to what you can do in IntelliJ, Eclipse and many text editors.

edit: Corrected subject from “Delete …” to “Duplicate”.


#2

AFAIK not.

But it is possible to edit file in custom user editor where you can use all known shortcuts and features…


#3

Yes, but there is no shortcut assigned by default. In View|Options|Editor on the Behavior tab click “Key Mapping…” and look for “Duplicate current line.” Assign one there.

On 04/29/2014 07:36 AM, olona wrote:

Delete Line in editor

Thread created by olona
Is it possible to Duplicate a Line in the editor, similar to what you can do in IntelliJ, Eclipse and many text editors.

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - General
notifications altogether.

Toad for Oracle - Discussion Forum

Flag
this post as spam/abuse.


#4

@MIchael,

Is it duplicate or delete line?

:slight_smile:


#5

Good question. I didn’t notice that the thread subject and message body are different. At any rate, both are there. CTRL+Y deletes line. Duplicate line is unassigned.

On 04/29/2014 12:09 PM, Damir Vadas wrote:

RE: Delete Line in editor

Reply by Damir Vadas
@MIchael,

Is it duplicate or delete line?

:slight_smile:

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - General
notifications altogether.

Toad for Oracle - Discussion Forum

Flag
this post as spam/abuse.


#6

Interesting. I was looking in shortcuts:

and there was no Ctrl+Y but it works in Editor.

And for Duplicate line, again haven’t found in shortcuts (for commands like screen before)
:slight_smile:


#7

You are looking in the wrong place.

From my earlier message… In View|Options|Editor on the Behavior tab click “Key Mapping…”

It’s not intuitive that core editor commands are not part of the Toolbars/Menus|Shortcuts page in options, but that’s why I listed their location. I’m currently working on some editor modifications that will consolidate these with the other shortcuts, but the
changes are quite involved and will take some time to implement.

On 04/29/2014 02:13 PM, Damir Vadas wrote:

RE: Delete Line in editor

Reply by Damir Vadas
Interesting. I was looking in shortcuts:

and there was no Ctrl+Y but it works in Editor.

And for Duplicate line, again haven’t found in shortcuts (for commands like screen before)

:slight_smile:

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - General
notifications altogether.

Toad for Oracle - Discussion Forum

Flag
this post as spam/abuse.


#8

Great. If me as 7 years old Toad user can be easy mislead, then some changes may be more than welcome.

Great and thx


#9

Thanks alot Michael, been looking for this command in Toad for some time now.

And sorry about the incorrect subject line. I don’t know what I was thinking.

Cheers!