43
Phlisg
7y

If you indent like this, I'm going to find you, and I'm going to kill you.

My eyes are already sore, 12 minutes after arriving to the office.

Comments
  • 5
    Auto-format?
  • 2
    @TheLazyDev That will put the five space indents back to four, but the brackets of the if may not get newlines. Our only option now is to pray.
  • 4
    @gorsamp Most auto-formatting tools have the formatting settings which you can mess around with, might be tedious to set up, but it's really useful in the long run
  • 3
    Well, if I put of a bit of context:

    This is our CMS text editor (no solution to integrate it with PHPStorm or w/e), am editing with it instead of locally because after 2 years working on that cms, it's the best solution (very unstable cms)

    I got so pissed I imported the file into a scratch file in phpstorm, reformatted everything and pasted everything back

    Plus I hate white themes :D
  • 4
    @TheLazyDev The lazy dev recommending tedious configuration lol
  • 2
    @gorsamp haha now that I think about it, they should either be preconfigured or preset is somewhere in the ether for you to find
  • 3
    @gorsamp @TheLazyDev for maximum lazyness, ctrl + alt + L on jetbrains' software is the best way to go :)
  • 3
    @Phlisg I like to write the sloppiest, longest lines of code only to hit that refactor shortcut. Such satisfaction. I usually make an audible aaahhhhh
  • 1
    @lu1slpz Never reveal your true self!

    At least you can just code, not worry too much about indentation, and refactor to your settings :D
  • 2
    @Phlisg Any other fun shortcuts you like?
  • 2
    @lu1slpz Ctrl + e (last opened files), Mouse4 / Mouse5, double shift (search anywhere), shift + F10 ('Run' command - useful for Go projects), ctrl + F2 (stop current 'run' command), ctrl + F12 (navigate in class), alt + F12 (open terminal)

    :D Could know more but tend to forget them
  • 3
    @lu1slpz actually, they're not so much "fun", just productive actually
  • 2
    @Phlisg thanks will try to remember these!
  • 2
    @lu1slpz hope they're useful :)
  • 2
    Well that’s a creative way 😂
  • 0
    @PuzzlesDev creative aaand filled with lots of mistakes there and there (no variable instanciation in for loops... etc)
  • 1
    Belong to a list of things that should be exterminated. ON SIGHT.
  • 1
    Oh, that's nothing, I once had a colleague who used to leave a blank every other line and would insert the blanks back if somebody deleted them and commited.
  • 0
    @telephantasm well your colleague is the guy who wrote this' brother

    Some people love making it hard :D
  • 1
    oh wow that *is* gross.

    eh. I'm also a

    function foo() {
    while (bar) {
    if (baz) {
    qux();
    }
    }
    }

    kind of guy
Add Comment