|
|
I prefer tabs - but the VS editor seems to have it's own idea about how they should be rendered, so I often end up using a mixture.
|
|
|
|
|
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;
|
|
|
|
|
I use spaces (inserted using the Tab key) according to the language: Python - 4 as is the usual setting, HTML/JavaScript: 2 because otherwise indenting of HTML tends to become too high to be comfortable.
|
|
|
|
|
Tabs. Converting the tabs to spaces in my code is a capital offense with immediate execution of the sentence.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
If(spaceToAdd > 1)
{
Tab();
}
else
{
Space();
}
// This is how my brain does it :P
|
|
|
|
|
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
|
|
|
|
|
I prefer tabs.
Our code size in bytes could double or quadruple or ? based on how many spaces were substituted.
A lot of lines in brace delimited languages are 8 tabs, open or close brace.
Python, stick to spaces!
|
|
|
|
|
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.
|
|
|
|
|
If it doesn't auto-indent, I will tab.
But now I wonder if K&R C had anything to say about that
|
|
|
|
|
I use Tabs (as the Good Lord Intended)
Truth,
James
|
|
|
|
|
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;
modified 20-Oct-22 17:00pm.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
Bad tabs, bad Tabs,
whatcha gonna do,
whatcha gonna do when they screw the code up for you?
|
|
|
|
|
As a SQL dev it's SPACES all the way. I use a TAB to insert 2 spaces but never use the TAB character within my code.
|
|
|
|
|
Is Spaces a slang term for Diet Coke? If so I definitely prefer it to Tab.
|
|
|
|
|
FINALLY someone has brought up this subject!
|
|
|
|
|
I think this thread nicely illustrates why tabs should be used for indentation. You want 2, 4, 8 character indentation, fine. You want half inch indentation, fine. You want 2½ character indentation, %#*$ you, but sure.
No one has to choose what is the "right" amount, everyone's editor will display it how they want.
|
|
|
|
|
|
For some reason, your posters word of wisdom reminded me of one of the mantras I have been chanting for many years - ever since electric pedal bikes started appearing (around here, you rarely see classic pedal bikes any more, they all have electric motors):
Electric bikes are like non-alcoholic beer.
|
|
|
|
|
Or spandex on an extremely large person!
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|
|
This may be non PC but we had a secretary who insisted on wearing lycra to work, forever known as "Screaming Lycra", twas a frightening sight that still haunts me 30 years later.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
I live in Florida and used to go to the beach quite often. During tourist season you see a lot that you wish you had never seen.
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|