tabbing a chunk of code
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
02-06-2005 19:33
I just discovered this by accident. In the built-in script editor, if you have several lines highlighted and press tab, they're all indented by one tab. If you press shift-tab, they're all un-indented by one. Who knew?! I don't like much of the editor's tab-related functionality, but this makes up for some of it. It's great for when you copy code between two scripts.
|
JustAnother Millhouse
Registered User
Join date: 26 Dec 2004
Posts: 31
|
02-06-2005 21:08
I was happy to see that they included this. It's pretty common in most hardcore editors/IDE's and is really great for quickly reformatting code for readability.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
02-06-2005 22:02
I've known about it but never used it.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
02-07-2005 07:37
yep I stumbled across it to one day. It's just as usefull as how it out idents for { and }.
|
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
|
02-07-2005 23:00
From: JustAnother Millhouse I was happy to see that they included this. It's pretty common in most hardcore editors/IDE's and is really great for quickly reformatting code for readability. Actually, entirely too many otherwise-usable IDEs don't have that feature.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
|
Flux Delorean
Registered User
Join date: 17 Jun 2004
Posts: 10
|
02-08-2005 09:14
I've always used this. The one thing I miss, though, is double-clicking a word and holding the second click to drag the selection to include other words. Instead, the drag is now including individual characters. Not all editors use the doulbe-click word drag, but those that do make it a lot easier to select a chunk of code. EDIT: And I keep posting under this alt, darnit! I gotta remember to switch before posting! 
|
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
|
02-08-2005 22:23
The feature I like the most is multi-line editing: control-click and drag vertically, and you get a multi-line insertation point. The only editor I've found that has this is the POV-Ray for Windows editor.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
02-09-2005 10:59
do you mean being able to select a chunk of text, and then drag it to a new location in the document?
|
JustAnother Millhouse
Registered User
Join date: 26 Dec 2004
Posts: 31
|
02-10-2005 13:04
From: Carnildo Greenacre Actually, entirely too many otherwise-usable IDEs don't have that feature. I guess I am just spoiled, but i've been a TextPad/UltraEdit/VisualStudio user for years. The thing I hate is when you go into a text editor that doesnt support it. 99% of the time when you hit that tab key, p00f there goes your code! Thank god for for Undo.
|
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
|
02-10-2005 23:01
From: Kurt Zidane do you mean being able to select a chunk of text, and then drag it to a new location in the document? If you're talking to me, no. I'm referring to a feature that lets you type on, say, five lines at once.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
|
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
|
02-10-2005 23:24
You also have shift-tab to un-tab a chunk too.  -Adam
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
02-10-2005 23:32
I use this feature extensively on the Kate editor. LSL mostly indents itself, but I still find it very handy when I do need to clean something up.
|
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
|
02-11-2005 00:08
From: Eggy Lippmann I use this feature extensively on the Kate editor. LSL mostly indents itself, but I still find it very handy when I do need to clean something up. KATE is fantastic. I'd love it if LL could clone it for LSL editing. (for those who dont know what KATE is, it's the KDE Advanced Text Editor, it powers both itself, and the underlying editor to KDevelop and others) -Adam
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
02-11-2005 02:10
From: Adam Zaius KATE is fantastic. I'd love it if LL could clone it for LSL editing.
(for those who dont know what KATE is, it's the KDE Advanced Text Editor, it powers both itself, and the underlying editor to KDevelop and others)
-Adam No, no... it's the KATE Advanced Text Editor. *grins*  I love the code collapsing feature... but I would really prefer if LL could give us attachments that will always attach and detach properly, as well as crossing sims without making me relog.
|