When creating or modifying source code files (e.g. *.c, *.h,
*.js, *.py, *.pl, *.html), do you indent (and save the files)
with tab (horizontal tab, ASCII 9) characters or spaces?
1: Spaces
2: Tabs
When creating or modifying source code files (e.g. *.c, *.h,
*.js, *.py, *.pl, *.html), do you indent (and save the files)
with tab (horizontal tab, ASCII 9) characters or spaces?
1: Spaces
2: Tabs
Very hard to choose... Where I work, the ABSOLUTE coding standard is tabs, amd that is taken very seriously.
However, my personal preference is 2 spaces.
bs,Very hard to choose... Where I work, the ABSOLUTE coding standard is ta
utamd that is taken very seriously.
However, my personal preference is 2 spaces.
My workplace doesn't have a policy on it, but I tend to use tabs. For my personal projects, I used to indent with spaces (I usually used 3 spaces), b
I've started using tabs. It seems easier to be consistent when using tabs,and
also with tabs, editors often give you the option on how much space it willuse
to represent a tab. For my Synchronet scripts/mods, I used to use Notepad2(in
Windows) to edit them, and eventually switched to Notepad++. Notepad++ madeit
more obvious that indentation was inconsistent in many places - Some code had a
mixture of tabs and spaces, which was hard to tell with Notepad2 because they
looked similar and the indentation looked good with Notepad2.
jagossel wrote to Digital Man <=-
Very hard to choose... Where I work, the ABSOLUTE coding standard is
tabs, amd that is taken very seriously.
However, my personal preference is 2 spaces.
When creating or modifying source code files (e.g. *.c, *.h,
*.js, *.py, *.pl, *.html), do you indent (and save the files)
with tab (horizontal tab, ASCII 9) characters or spaces?
1: Spaces
2: Tabs
El 24/08/17 a las 17:00, Digital Man escribi:
When creating or modifying source code files (e.g. *.c, *.h,
*.js, *.py, *.pl, *.html), do you indent (and save the files)
with tab (horizontal tab, ASCII 9) characters or spaces?
1: Spaces
2: Tabs
spaces forever
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 4 |
Nodes: | 10 (0 / 10) |
Uptime: | 142:30:18 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 49,878 |