703
submitted 4 days ago by Oha@lemmy.ohaa.xyz to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] lseif@sopuli.xyz 2 points 3 days ago
[-] simonced@lemmy.one 16 points 3 days ago

So I have to use the same width as you? What if I want 3 spaces for a tab?

[-] mexicancartel@lemmy.dbzer0.com 6 points 3 days ago

That makes it worse imo

[-] LodeMike@lemmy.today 4 points 3 days ago* (last edited 3 days ago)

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.

[-] SilverCode@lemm.ee 9 points 3 days ago* (last edited 3 days ago)

I like to use asterisk spacing.

void main() {
/****/for (int i=0; i <10; ++I) {
/********/printf("hello world\n");
/********/printf("%d\n", i);
/****/}
}
[-] Grimpen@lemmy.ca 3 points 2 days ago

Respect. Only through destruction can we be purified.

[-] LodeMike@lemmy.today 0 points 3 days ago* (last edited 3 days ago)

That's spaces but worse? Why do you do this?

this post was submitted on 14 Sep 2024
703 points (97.6% liked)

Linux

47324 readers
947 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS