[Discussion] Whitespace |
Gabrijelr « Citoyen » 1397656560000
| 0 | ||
I was wondering... I like to have a lot of whitespace when I'm coding. It's much easier to find specific parts later and fix something if there's a bug. Also, it looks so much better and "cleaner". How much whitespace do you prefer? |
0 | ||
I asume that you are talking about indentation. I usually use 4 tabs (tabs2space) |
Joellamae 1397671920000
| | ||
[Modéré par Katburger, raison : Off-topic] |
0 | ||
2spacee |
0 | ||
I use tabs. For example, I don't use a tab for main "var1 = 0 var2 = 1 var3 = "sumthin" function sumthin() var4 = "lel" if var4 == "lel" then print("var4 = lel") end if var4 == "lel" then if var3 == "sumthin" then print("You see where I'm going with this, right?") end end end " It looks good, easy to read and is easy to see where things start/end (I know the code could be done different, I did it this way to show how I use tabs) |
Tranna « Citoyen » 1398172140000
| 0 | ||
Jordynl a dit : This. I don't code Lua but I program with other things. |
0 | ||
i use 4 tabs per level of indention, 3 spaces after each comma, and a space at the end of every line just in case |
Makinit « Citoyen » 1398295680000
| 0 | ||
I write everything on one line so when I get an error it's easier to find the line. |
Leafileaf « Citoyen » 1398337920000
| 0 | ||
1 hard-tab (hate "soft tabs" 4 spaces) No spaces where possible to read without much strain. (i.e. no spaces after commas, equal-signs, etc) Everything on one line for short codes. |