How to duplicate current line in Editor Window?

Hello PSD gurus!
I'm missing a feature of duplicating the current line of source code, like Ctrl+D in Notepad++.
Tried to search forum and documentation first, found nothing...
Is it this feature available?
 
There is indeed no built-in function for this. You can however create a macro (Home key, Shift-Down to select the line, Paste to duplicate), add it to the macro library, assign it to the menu, and assign function key.
 
I have created the following macro
08-06-2015%2B12-03-45.png

But when applying it, the error is encountered:
"Cannot open clipboard"

My PLSQL Developer Version: 11.1
OS: Windows 7 Enterprise 64bit
 
No. I've also checked the same macro, but without the last "Paste" step.
09-06-2015%2B13-53-35.png

No error.
So, something wrong happens at "Paste" (Ctrl+V) step.
 
I've created the same macro and it doesnt work.
Sometimes it says "Cannot open clipboard", sometimes nothing happens at all.
 
"There is indeed no built-in function for this."

Would you please build these function into the next release?
That would be great.
 
The selected text can be copied using drag&drop and Ctrl.

Is it better for you to use hot keys?

I can add this function to my rrProject plugin.
 
miba said:
"There is indeed no built-in function for this."

Would you please build these function into the next release?
That would be great.
I have added this to the list of enhancement requests.
 
Hi, try moving the cursor before paste. I created the macro with Down- (4) and Up-Key (3) between Copy (301) and Paste (303). It works fine.
Regards

 
Hello Marina,

i have a lot of macros, replacing missing PSD Text manipulating functions.
"Duplicate Line" is one for example, but i have a slightly other definition. maybe you can give it a try.

I found no easy way to export it so here is the text definition:
- 7 Move cursor to beginning of line
- 108 Move cursor and select end of line
- 301 Copy selection to clipboard
- 8 Move Cursor to end of line
- 339 Break line at current position, move caret to new line
- 7 Move cursor to beginning of line
- 303 Paste clipboard to curretn position

Regards Benjamin
 
Writing code using hotkeys is for me the fastest way to get things done.
I would be also glad to see such basic hotkeys like duplicating, swapping lines, deleting current line etc. in basic out-of-the-box PLSQL/Developer functionality.
 
Back
Top