[Done] Way to copy a procedure easily and quickly

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

[Done] Way to copy a procedure easily and quickly

Post by Dude »

Solved, due to Josh's explanation below. :)
Last edited by Dude on Tue Jan 10, 2017 11:09 am, edited 2 times in total.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Way to copy a procedure easily and quickly

Post by Josh »

Close folding and you have to mark only one line
sorry for my bad english
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Way to copy a procedure easily and quickly

Post by Dude »

:?: Tried that and it didn't work, hence the reason for this request.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Way to copy a procedure easily and quickly

Post by Josh »

Which OS?

Needless to say, you have to mark the full line, incl. CrLf
sorry for my bad english
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Way to copy a procedure easily and quickly

Post by Dude »

Josh wrote:Of course you have to mark the full line, incl. CrLf
So THAT'S the secret! Thanks! :D It's not very obvious, though. It makes more sense just to copy the folded line, rather than also copying a blank line after it.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: [Done] Way to copy a procedure easily and quickly

Post by Josh »

It makes sense like it is. You don't have to copy the line after that, you have to copy the full procedure head-line and CrLf belongs to this
sorry for my bad english
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: [Done] Way to copy a procedure easily and quickly

Post by Dude »

Well, I'm so used to triple-clicking a line of text to select all that line, like for any other app. Would be awesome if we could do that on a folded procedure (triple-click the line) and then simply press Ctrl+C to copy the whole procedure, instead of also having to drag the mouse down a bit to select the next blank line as well.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [Done] Way to copy a procedure easily and quickly

Post by skywalk »

I use [ctrl+m] until procedure is highlighted, then [ctrl+c]. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: [Done] Way to copy a procedure easily and quickly

Post by gurj »

PureBasic CodeArchiv :
EditorGadget_GetCursorPosition:
; German forum: http://www.purebasic.fr/german/archive/ ... highlight=
EditorGadgetCursorX(Gadget)
EditorGadgetCursorY(Gadget)
EditorGadgetCursorPos(Gadget)
EditorGadgetLocate(Gadget,x,y)
============
SelectEditorLine:
http://www.purebasic.fr/english/search. ... mit=Search
my pb for chinese:
http://ataorj.ys168.com
Post Reply