Duplicate a line of code...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
HwyStar
Enthusiast
Enthusiast
Posts: 101
Joined: Mon Apr 05, 2010 7:13 pm
Location: Reno, Nevada

Duplicate a line of code...

Post by HwyStar »

One enhancement that I would like to see in the editor is:
By pressing the F2 key (or any unassigned function key) it duplicates the current line of code in the editor. A simple but yet easy way to duplicate a line of code. A lot of code editors have this and I use this kind of keystroke all the time with my other compilers.

Thanks in Advance!
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Duplicate a line of code...

Post by Demivec »

HwyStar wrote:One enhancement that I would like to see in the editor is:
By pressing the F2 key (or any unassigned function key) it duplicates the current line of code in the editor. A simple but yet easy way to duplicate a line of code. A lot of code editors have this and I use this kind of keystroke all the time with my other compilers.
If using the PureBasic IDE just press Control + D. I believe that is actually a Scintilla shortcut to duplicate the current line.
jamba
Enthusiast
Enthusiast
Posts: 144
Joined: Fri Jan 15, 2010 2:03 pm
Location: Triad, NC
Contact:

Re: Duplicate a line of code...

Post by jamba »

Ctrl+D also duplicates whatever you have selected, if more than one line.
-Jon

Fedora user
But I work with Win7
User avatar
HwyStar
Enthusiast
Enthusiast
Posts: 101
Joined: Mon Apr 05, 2010 7:13 pm
Location: Reno, Nevada

Re: Duplicate a line of code...

Post by HwyStar »

Thanks Guys!

I just spotted the original post that has many of the shortcut keys at:
http://www.purebasic.fr/english/viewtop ... 18&t=41065
Post Reply