Can't believe I never knew this
#1

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.
Reply
#2

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
Reply
#3

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

+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
Reply
#5

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

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!
Reply
#7

pawn Код:
new HasIndented[MAX_PLAYERS];

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

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

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:
  • HOME - Goes to start of line
  • END - Goes to end of line
  • SHIFT + HOME - Selects from cursor position to start of line
  • SHIFT + END - ^ but to end of line
  • SHIFT + CTRL + LEFT/RIGHT ARROWS - Selects words
  • SHIFT + UP/DOWN - Selects entire lines
  • SHIFT + X - Cut, same as copy but deletes the text and puts it in your clipboard
  • SHIFT + A - Selects all text in the element
  • CTRL + Z - Undo your last action
  • CTRL + Y - Redo your last undone action
  • CTRL + F - Find text
  • CTRL + H - Usually find & replace, but some editors are different
  • CTRL + G - Usually go to specified line by number, some editors are different
Shortcuts that may or may not be unique to Notepad++:
  • SHIFT + L - Cuts current line
  • SHIFT + D - Duplicates current line and puts it below current line
  • CTRL + U - Make your current selection lowercase
  • CTRL + SHIFT + U - Make your current selection UPPERCASE
  • CTRL + SHIFT + UP/DOWN - Moves current line up or down
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)
  • WK + E - Opens Windows Explorer
  • WK + R - Opens run dialog
  • WK + D - Minimizes everything and goes to desktop
  • WK + F - Opens computer searching dialog
  • WK + T - Scrolls through your taskbar
  • WK + TAB - A new version of ALT + TAB, only works on Windows Aero installations
  • WK + PAUSE/BREAK - Opens System dialog
  • CTRL + SHIFT + ESC - Opens Task Manager
  • ALT - Displays any hidden menus on your currently opened window
  • SHIFT + RIGHTCLICK - Can sometimes show additional usually hidden context-sensitive options
Some handy standard browser shortcuts too:
  • CTRL + W - Closes current TAB, also works in many other areas as default for closing things
  • CTRL + T - Opens a new TAB
  • SHIFT + CTRL + T - Opens previously closed tabs in order
  • CTRL + F - Find text on page
  • CTRL + H - View your browser history
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)