Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Did you Know? Reformatting UnTabbed Script

Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
10-26-2008 06:18
heyas;

i discovered this one day while trying to erase an entire default script by selecting it, then hitting tab to write a new event.

if you select a block of text, and hit tab, it doesnt erase it. instead... it increases the tab of your selection.

so, lets say you just copied and pasted a script from the forums, and everything is annoyingly right justified. select everything between the default state { and }, then hit tab. voila!
you want bits inside each event tabbed more? do it again on those parts.



eh, well, i dunno, i thought it was kinda cool. im sorta a neat-freak anyway :X
_____________________
Why Johnny Can't Rotate:
http://forums.secondlife.com/showthread.php?t=94705
Very Vig
Registered User
Join date: 24 Oct 2008
Posts: 4
10-26-2008 08:18
Yes and the converse works too. shift-tab reduces the indent.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
10-26-2008 08:20
that is cool, I never noticed that
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
10-26-2008 09:55
It's a great feature that is sadly missing from lots of code editors. (I first ran across it in MS Visual Studio when learning C++).
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
10-26-2008 10:11
been using it for a very ver long time, tought every one knew this :o
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
10-26-2008 11:54
I discovered it the same way you did: trying to delete code. I didn't know about shift-tab, though. Thanks, VV!
_____________________
The Vengeance Studio Gadget Store is closed!

Arcane Clawtooth
5 By 5
Join date: 7 Jan 2008
Posts: 201
10-26-2008 17:00
I only use the internal editor for quick scripts, so I hadn't come across this before, cool. Although, any script with more then a few lines and I would recommend using an external editor like TextPad. When combined with TortoiseSVN you get full version control which is great with long projects.
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
10-26-2008 17:39
it basicly acts like a windows notepad

ctrl y
ctrl z
ctrl c
ctrl v

and a bunch of other shortcuts that i can`t even remember :)