IDE, using TabKey can delete code

Working on new editor enhancements?
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

IDE, using TabKey can delete code

Post by va!n »

just try following example and mark only the complete line "test = 2" and try what happens, when pressing now the TabKey (the marked line will be deleted) :twisted:

Code: Select all

test = 1
test = 2  
test = 3
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It's the wanted behaviour (check UltraEdit , it's the same).
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

the wanted behaviour :?:
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Yes, the intendation of code blocks is only for multiline selections.
When the selection is only within one line, pressing tab works as normal,
which is inserting a tab (or a number of spaces), which of course replace the current selection.
Just like if you select something and press space.
quidquid Latine dictum sit altum videtur
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

aaaahhh, i was wondering what's happened...
thanks for the precision.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply