Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-12-23 00:00:00Z and 2020-12-24 00:00:00Z
Avatar
I always used tabs to indent spaces to align, but then I noticed spaces are actually horrible for alignment (edited)
01:39
tabs to indent allows people to view the code however they like by setting the tabstop
Avatar
Tab makes multi-line alignment impossible tho
03:38
Tbf I don't know the "right way" to break a definition into two lines
Avatar
Avatar
TsFreddie
Tab makes multi-line alignment impossible tho
You can use tab+spaces for that. A good general rule is to use tabs when size does not matter, and spaces when it does 😀
Avatar
but like if someone else have a different tab size it will look weird won't it.
Avatar
It won't! if(!isStopped) { ----callFunction(param1, ----.............param2); }
Avatar
i see
11:05
i've been using it wrong
11:05
😆
Avatar
It will look fine, the problem is that it's not very easy to use, you need to either spam space or have your editor do it which always gets it wrong
Avatar
I personally rarely use multiline stuff because I like word wrapping, but I can understand the nuisance
Avatar
there are probably extensions that does that
Avatar
it solves both the space problems and tab problems
Avatar
@TsFreddie problem is these things are usually very hard to spot mistakes in, and the editors almost always autodetect wrong
13:08
When you can't trust your editor on something that's hard to see for you, it's rather annoying (edited)
Avatar
yeah, true
Avatar
i think i still like spaces more
Exported 19 message(s)