Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
gorsamp19507y@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.
-
@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
-
Phlisg25247yWell, 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 -
@gorsamp haha now that I think about it, they should either be preconfigured or preset is somewhere in the ether for you to find
-
Phlisg25247y@gorsamp @TheLazyDev for maximum lazyness, ctrl + alt + L on jetbrains' software is the best way to go :)
-
lu1slpz747y@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
-
Phlisg25247y@lu1slpz Never reveal your true self!
At least you can just code, not worry too much about indentation, and refactor to your settings :D -
Phlisg25247y@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 -
Phlisg25247y@PuzzlesDev creative aaand filled with lots of mistakes there and there (no variable instanciation in for loops... etc)
-
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.
-
Phlisg25247y@telephantasm well your colleague is the guy who wrote this' brother
Some people love making it hard :D -
oh wow that *is* gross.
eh. I'm also a
function foo() {
while (bar) {
if (baz) {
qux();
}
}
}
kind of guy
Related Rants
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.
undefined
close to uglify
indentation
js