Please add To help: Very nice undocumented IDE feature

Share your advanced PureBasic knowledge/code with the community.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Please add To help: Very nice undocumented IDE feature

Post by va!n »

Most of you know the feature to mark a part of your source (only each complete line when trying to mark a block) and using some nice shortcut commands like:

Code: Select all

Strg + C    =  Copy
Strg + V    = Paste
Strg + X    = Delete
What, if you really want only a column based block mark, for example when having a datasection like this...

Image

... and for example you want to cut the first three and last two values? If the first three and last two values would be "0", you could just do a find/repalce! But in this case its a bit problematical! In this example you could just copy the needed part "5,0,0,23" and copy/paste it with adding Data.b in front...

Image

But there is a most more flexibel and easy way to do it... Just set your cursor to the first line and to the first sign (left/top site of your wanted block)... now hold down "Shift + Alt" and set the right/upper blockend! (you can do the mark with your cursor keys or with your mouse). With this nice feature you can very fast copy/paste column based blocks to something like:

Image

I think its a nice feature to know about :D
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Please add To help: Very nice undocumented IDE feature

Post by PB »

Nice! Thanks for that. I'd say that it's probably a Scintilla feature, as
opposed to an undocumented editor tip though. Still, nice to know! :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Hey good tip!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Please add To help: Very nice undocumented IDE feature

Post by gnozal »

PB wrote:Nice! Thanks for that. I'd say that it's probably a Scintilla feature, as
opposed to an undocumented editor tip though. Still, nice to know! :)
Yes, it's a scintilla feature : if you hold the ALT key down while selecting text with the mouse, you are in 'column mode'. Works with jaPBe too.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply