SA-MP Forums Archive
Can't believe I never knew this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Can't believe I never knew this (/showthread.php?tid=342490)



Can't believe I never knew this - MP2 - 13.05.2012

Oh my god. Check this. Take, for example, I post some converted objects in to pawno from convertFFS, they're all unindented. What I used to do was spam

TAB
Left Arrow
Down
and repeat..

for every
single
fucking
line.

I just found out you can highlight a load of lines and press TAB and it indents them all. I'm literally crying.


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - IceCube! - 13.05.2012

LMFAO, If only you asked bro!, We would have all told you are well kept secret Thank fullly I learnt this trick back in the early days :P


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - MP2 - 13.05.2012

I literally can't believe I never knew this. Fucking amazing. The THOUSANDS of lines I've individually indented...


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - IceCube! - 13.05.2012

+Disease for making my day.

EDIT: I have to spread my disease more before I can give it to you .

EDIT: I CBF to read the timer but Logitech

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
pawn Код:
public EPIC(playerid)
{
SendClientMessage(playerid, red, "FUCK YES! TAB FTW!");
return 1;
}
Are you goiung to forward that


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - Face9000 - 13.05.2012

pawn Код:
public EPIC(playerid)
{
SendClientMessage(playerid, red, "FUCK YES! TAB FTW!");
return 1;
}



Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - IceCube! - 13.05.2012

pawn Код:
if(newkeys == KEY_TaB)
{
       if(!Retard[playerid]) return 1;
       else SendClientMessage(playerid, FAIL, "Enjoy your tabbing!");
       return 1;
}
Quote:
Originally Posted by Drebin
Посмотреть сообщение
And you need to create a topic just for that?
Really..
Well quite clearly yes or this thread wouldn't be here.. DUH!


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - Face9000 - 13.05.2012

pawn Код:
new HasIndented[MAX_PLAYERS];

if(HasIndented[playerid] == 0)
{
SendClientMessage(playerid, red, "ARE YOU FUCKIN KIDDING ME?! LEARN TO INDENT NOOB!!");
Ban(playerid);
}



Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - [P4] - 13.05.2012

Lmao that was like first thing I found out myself in my scripting attempts :P


Re: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - JaTochNietDan - 13.05.2012

Did you know you can press SHIFT + TAB to indent backwards?

Pasting my other reply here since it might get noticed more and help more people:

More shortcuts for coding:
Shortcuts that may or may not be unique to Notepad++:
That's just a few of the shortcuts I use while coding to get things done faster!

Oh and for further speed, some Windows shortcuts:

WK = Windows Key (between ALT and CTRL)
Some handy standard browser shortcuts too:



Respuesta: I'M ACTUALLY CRYING AND WANT TO CUT MY WRISTS - admantis - 13.05.2012

I've done the same thing with indenting but to the left.
You do Shift + TAB to indent them backwards. Thanks to this, I'm younger.