123
-red
6y

I mean.. how hard is it to FUCKING INDENT CODE ??!!!?!?!!???!?

Comments
  • 8
    It's hard. I rarely do it. Not getting paid to indent shit.
  • 6
    @mzeffect It's not hard my friend. Besides, if you use a decent editor, the indentation happens without you having to do anything with it.

    And you know what.. I think I would rant this exact same thing had I been working where you're working.. What do you think is going to happen to the person you hand over your code to ?

    ..
    ..

    Peace out !
  • 4
    @mzeffect If you find indenting code hard then how do you manage to code something?
    I mean it just takes a fucking button press in an IDE.
  • 1
    @notroot well the next person can just run a project wide beutify with the same capable text editor can't he?
  • 4
    @mzeffect You know.. It's your responsibility as the original code writer to keep it clear and easy for other people to understand.

    If you don't, then it makes the task progressively harder as more and more people read and edit your code.

    Your code may work.. So it's doesn't say anything about you as a coder. But it tells something about you as a person.

    ..
    ..

    Peace Out !
  • 7
    Here, have a cookie for falling for my obvious trolling. 🍪

    ..
    ..

    Peace out.
  • 2
    @mzeffect I knew it !
  • 2
    I know
    right?
  • 2
  • 3
    Here's a few handy shortcuts -

    VSCode -
    On Windows Shift + Alt + F
    On Mac Shift + Option + F
    On Ubuntu Ctrl + Shift + I

    Atom -
    Ctrl + Shift + P then type 'autoi' and enter

    Eclipse -
    Ctrl + shift + F

    Netbeans -
    Alt + Shift + F

    Sublime Text -
    Go to Preferences > Key Binding - User
    Add '{ "keys": ["f12"], "command": "reindent", "args": {"single_line": false}'

    Now press F12 and see the magic!

    Notepad++
    Install the plugin "TextFX"

    PhpStorm -
    Ctrl+Shift+Alt+L

    Notepad -
    GTFO master
  • 1
    and then the fucker comes screaming for help. I'll be like "first thing, if you expect me to help you, I expect you to indent your code" ffs
  • 2
    Visual Studio: CTRL+K CTRL+D

    Sorted.
  • 2
    IntelliJ
    Ctrl+Alt+L
  • 2
    @Cyanide are you just Cyanide or are you ZF Cyanide? 🤔
  • 1
    It's hard when your IDE is crap... *Cough* JGrasp...

    If I use notepad++ or Monodevelop its easy :P
  • 1
    Emacs: Tab

    That's it. That's all you have to do.
  • 1
    @mzeffect this is the worst thing I've ever read
  • 1
    Fewer keystrokes, I suppose
    Great for creating kludges that only you know how they work.
  • 1
    Do you want the opening braces on a new line or same line?
  • 1
    Sorry, Tab machine broke.
  • 1
    @D3add3d No ZF here. Don't even know that person.
  • 2
    @Cyanide ah ok, I just had to ask :-D
    Just type ZF Cyanide into YouTube and you should get a rough idea (you may also watch videos by SovietWomble, they usually make videos together)
  • 1
    @notroot well I prefer new line... See it's getting hard :)
  • 1
    This is why we have IDEs, I'm not wasting my time indenting things manually when we have tools that can do it all in a button press thanks!
  • 1
    @notroot gg=G 😀
Add Comment