Tabs vs Spaces
-
Beer cans used to have tabs...so I prefer tabs. :)
PartsBin an Electronics Part Organizer - A updated version available! JaxCoder.com
-
Competition for your "PartsBin" Wait... What? I Made a Small Parts Organizer with Drawers from Cardboard! - YouTube[^] Perhaps include this as an add on
Awesome thanks for the link. Good storage alternative, especially since the organizers are so dang expensive.
PartsBin an Electronics Part Organizer - A updated version available! JaxCoder.com
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I use Tabs for Columns, and spaces for strings, Carriage Return/Line Feed for new Row. Makes sense when Using Excel. For notepad it doesn't matter :-)
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
If(spaceToAdd > 1) { Tab(); } else { Space(); } // This is how my brain does it :P
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I use tab and shift+tab in VS to keep things in neat code blocks. I don't really care how many spaces a tab is as long as it's consistent (I use the default). I've never seen a good reason to use spaces, whenever I see code like that it's usually a mess. It's possible to format code well using spaces, but that's not what I usually see in the wild.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
If it doesn't auto-indent, I will tab. But now I wonder if K&R C had anything to say about that :~
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I use Tabs (as the Good Lord Intended)
Truth, James
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I used tabs until Visual Studio .NET 2003 unrecoverably broke the block indent/undent operation when you mixed tabs and spaces. After that I switched to spaces. And yes, this same operation has been broken ever since. VC6 would let you have
{tab}{tab}{sp}{sp}stuff
, and when you indented, that became{tab}{tab}{tab}{sp}{sp}stuff
. All versions since then have stripped the leading tabs and/or spaces and inserted N tabs or N*s spaces. Studio has been through more than one editor rewrite since then, and it still doesn't work right. I'm using VS2019 now, and it occasionally decides to treat indents as blocks. It's not predictable though.Software Zen:
delete this;
-
Indent? That’s really a thing? I just left-align everything. Tried right-align, but that was messy. :)
Time is the differentiation of eternity devised by man to measure the passage of human events. - Manly P. Hall Mark Just another cog in the wheel
Use RTL text (or even better bidi), I dare you.
Software Zen:
delete this;
-
No, TAB stops are by distance, not character count. A half inch is sufficient.
-
So did Hitler.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I always use IDE for coding. All IDEs that I use convert tab to spaces automatically. I always press TAB on keyboard when I want to indent, though. Since less keystroke is faster and better. So you could say that I am a TAB guy? But I am perfectly fine with it saved as spaces.
-
So did Hitler.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
I use tabs bc using spaces is rude. For example, I personally prefer .html or .xaml files with an indentation of 3 spaces, for other file types I prefer 4 spaces. This is not possible if some ruthless predecessor inserted spaces according to his, probably different, personal preferences in the source files. Or if I am the predecessor, then I would force my 3 spaces upon other people. That's not the way to treat each other.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I use the TAB key to insert SPACES.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Ditto
-
Quick survey... How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I would've never thought there could be a good argument for tabs, but this sounds like a good way to satisfy everyone. My only question would be what the code looks like outside the IDE, in GitHub or even Notepad, for example.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.No, no, no! If you think that you have found a good argument on the internet... :-D Thanks for the comment though. It is surprising the number of times I have brought this point up and people that were dead set against tabs get a surprised look on their faces. Never thought of that before. Every indentation is 1 tab - what you want it to look like is up to you. And if you use notepad to look at code - well I can't help everybody!
If you can't laugh at yourself - ask me and I will do it for you.