a lost user
Join date: ?
Posts: ?
|
08-19-2005 21:44
Have you ever wrriten a bunch of code and then realised you need another IF statement to encapsulate that code, and then sighed as you indented each single line of code under the new IF statement to keep everything neat and tidy?.. Well I have, quite a number of times and I just found a way to indent the entire block of code in one go...
What you do is select the entire block of code that you need to indent, and then press TAB to indent it. Simple, yes? I stumbled on to this just now when I selected a bunch of code I was going to delete but wanted to end up in an indented position after deleting. Instead of deleting the code like would happen if I had hit space or any other key, the entire selected block of code indented.
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
08-20-2005 05:38
Hehehe, yeah, that took me a while to discover back in the day. Some other useful bits - Ctrl Tab changes between SL windows, very handy when doing client-server stuff in parallel.
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
08-20-2005 13:38
Ah, so tha-... you learn new things every day  .
|
Blain Candour
Registered User
Join date: 17 Jun 2005
Posts: 83
|
08-20-2005 16:20
I wonder how long it would have taken me to realize this without you telling me. I always assumed it would overwrite selected text like most typing does.
_____________________
DISCLAIMER: Blain Candour is a total and eternal n00b and everything he tells you should be taken with a huge pile of salt. Especially when he refers to himself in third person!
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
08-20-2005 16:56
A lot of people don't know this, but shift-tab allows you to reverse indents. It's true, look at your tab key. Shift-tab also allows you to reverse a block of indents as well, and of course, to tab backwards through UI elements.
|
Kairen Overdrive
Registered User
Join date: 12 Jul 2005
Posts: 38
|
08-21-2005 03:41
Hehe.. I just gotta love these little things which make life easier  I know this already and I am combining it with other tricks as well and my typing speed has increased radically..
|