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
Learath2
2020-12-23 01:38:48Z
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
TsFreddie
2020-12-23 03:37:35Z
Tab makes multi-line alignment impossible tho
03:38
Tbf I don't know the "right way" to break a definition into two lines
TsFreddie
Tab makes multi-line alignment impossible tho
Dune
2020-12-23 10:42:58Z
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
TsFreddie
2020-12-23 10:43:51Z
but like if someone else have a different tab size it will look weird won't it.
Dune
2020-12-23 11:05:25Z
It won't!
if(!isStopped) { ----callFunction(param1, ----.............param2); }
TsFreddie
2020-12-23 11:05:47Z
i see
11:05
i've been using it wrong
11:05
Learath2
2020-12-23 13:02:25Z
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
Dune
2020-12-23 13:03:09Z
I personally rarely use multiline stuff because I like word wrapping, but I can understand the nuisance
TsFreddie
2020-12-23 13:03:26Z
there are probably extensions that does that
Dune
2020-12-23 13:03:35Z
it solves both the space problems and tab problems
Learath2
2020-12-23 13:08:17Z
@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)
Dune
2020-12-23 13:09:04Z
yeah, true
TsFreddie
2020-12-23 13:09:35Z
i think i still like spaces more
GitHub
BOT
2020-12-23 17:24:29Z
fokkonaut
[teeworlds/teeworlds] Pull request opened: #2836 Fix colored nameplates not being colored
Exported 19 message(s)