You're viewing a single thread.
Blue_Morpho @lemmy.world Some people take tabs vs spaces too seriously.
328 1 Replyzante @lemmy.wtf If your front door gets kicked in, this is why.
55 0 ReplyBrickhead92 @lemmy.world That's right kids. To avoid this situation be sure to use tabs for indentation.
23 0 Replyacockworkorange @mander.xyz The only indentation method that the viewer has control on how big they want it.
2 0 Reply
737 @lemmy.blahaj.zone please just use spaces, it makes everything easier
15 31 ReplyKairos @lemmy.today How?
20 2 Replylseif @sopuli.xyz same width for all setups
8 6 Replysimonced @lemmy.one So I have to use the same width as you? What if I want 3 spaces for a tab?
16 0 Replymexicancartel @lemmy.dbzer0.com That makes it worse imo
10 4 ReplyKairos @lemmy.today I use tabs for indentation then spaces after that if I need to offset a line by a specific amount of chars, such as a multi-line output or something.
Edit: to be specific: https://pastebin.com/un6iUmEp . Notice how line 3 has one tab, then several spaces before the first non-whitespace character.
5 1 ReplySilverCode @lemm.ee I like to use asterisk spacing.
void main() { /****/for (int i=0; i <10; ++I) { /********/printf("hello world\n"); /********/printf("%d\n", i); /****/} }
9 0 ReplyGrimpen @lemmy.ca Respect. Only through destruction can we be purified.
3 0 ReplyKairos @lemmy.today That's spaces but worse? Why do you do this?
1 1 Reply