# Duplicate Line in editor

**URL:** <https://forums.toadworld.com/t/duplicate-line-in-editor/29936>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [April 29, 2014, 4:35am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936 "2014-04-29T04:35:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![olona](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/olona/32/91_2.png) [@olona](https://forums.toadworld.com/u/olona)\
**Post date:** [April 29, 2014, 4:35am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/1 "2014-04-29T04:35:56Z")

</div>

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”.

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [April 29, 2014, 6:16am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/2 "2014-04-29T06:16:47Z")

</div>

AFAIK not.

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

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [April 29, 2014, 7:07am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/3 "2014-04-29T07:07:17Z")

</div>

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](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21911.aspx)**

> 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](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21911.aspx?subscribe=false) on this subject.
> 
> Or [  
> Unsubscribe from Toad for Oracle - General](http://www.toadworld.com/products/toad-for-oracle/f/10.aspx?subscribe=false) notifications altogether.
> 
> Toad for Oracle - Discussion Forum

> [Flag](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21911.aspx?AbuseContentId=84f89ae2-3b26-4692-852b-6a7b16c7f251&AbuseContentTypeId=46448885-d0e6-4133-bbfb-f0cd7b0fd6f7&AbuseFlag=true)  
> this post as spam/abuse.

> ![](https://global.discourse-cdn.com/quest/original/3X/5/0/50b30fd5f87c85fe5cba2635cb83316ca71250d7.gif)

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [April 29, 2014, 9:09am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/4 "2014-04-29T09:09:29Z")

</div>

@MIchael,

Is it duplicate or delete line?

🙂

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [April 29, 2014, 9:24am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/5 "2014-04-29T09:24:20Z")

</div>

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](http://www.toadworld.com/products/toad-for-oracle/f/10/p/21911/46329.aspx#46329)**

> Reply by Damir Vadas  
> @MIchael,

> Is it duplicate or delete line?

> 🙂

> To reply, please reply-all to this email.
> 
> [Stop receiving emails](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21911.aspx?subscribe=false) on this subject.
> 
> Or [  
> Unsubscribe from Toad for Oracle - General](http://www.toadworld.com/products/toad-for-oracle/f/10.aspx?subscribe=false) notifications altogether.
> 
> Toad for Oracle - Discussion Forum

> [Flag](http://www.toadworld.com/products/toad-for-oracle/f/10/p/21911/46329.aspx?AbuseContentId=4cc75098-127f-42a0-bd40-9c03a10e036b&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true)  
> this post as spam/abuse.

> ![](https://global.discourse-cdn.com/quest/original/3X/5/0/50b30fd5f87c85fe5cba2635cb83316ca71250d7.gif)

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [April 29, 2014, 11:12am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/6 "2014-04-29T11:12:22Z")

</div>

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)  
🙂

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [April 29, 2014, 11:43am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/7 "2014-04-29T11:43:24Z")

</div>

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](http://www.toadworld.com/products/toad-for-oracle/f/10/p/21911/46334.aspx#46334)**

> 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)
> 
> 🙂

> To reply, please reply-all to this email.
> 
> [Stop receiving emails](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21911.aspx?subscribe=false) on this subject.
> 
> Or [  
> Unsubscribe from Toad for Oracle - General](http://www.toadworld.com/products/toad-for-oracle/f/10.aspx?subscribe=false) notifications altogether.
> 
> Toad for Oracle - Discussion Forum

> [Flag](http://www.toadworld.com/products/toad-for-oracle/f/10/p/21911/46334.aspx?AbuseContentId=3ba28e85-7e7d-4f36-8540-27da75c5ac06&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true)  
> this post as spam/abuse.

> ![](https://global.discourse-cdn.com/quest/original/3X/5/0/50b30fd5f87c85fe5cba2635cb83316ca71250d7.gif)

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [April 29, 2014, 11:45am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/8 "2014-04-29T11:45:16Z")

</div>

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

Great and thx

---

<div class="post-metadata">

**Author:** ![olona](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/olona/32/91_2.png) [@olona](https://forums.toadworld.com/u/olona)\
**Post date:** [May 5, 2014, 12:09am UTC](https://forums.toadworld.com/t/duplicate-line-in-editor/29936/9 "2014-05-05T00:09:06Z")

</div>

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!

 ![duplicateline.png](https://global.discourse-cdn.com/quest/original/2X/6/6eb56fadad7c3bd7ed61ff762b95a24b40aea458.png)
