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.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 14:50:42 |
Calls: | 335 |
Messages: | 112,959 |