Tabs versus spaces

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,413
Reaction score
7,522
Location
Bellville
What do you use?

What is correct to indent code?

I use spaces :)
 
Someone been watching Silicon Valley?

If I developed, Tabs would be it.
 
Spaces, but this is done automatically by my IDE that converts tabs to spaces. People don't actually mash the spacebar do they :wtf:
 
In Python - spaces.

C# - whatever the IDE is setup to use.
 
Tabs, and on document format in Visual Studio I have my settings such that spaces are converted to tabs. I even often enable viewing whitespace markers while editing. The times when it does happen that you need to correct indentation yourself, deleting individual spaces is too annoying.
 
4 spaces, using the tab key where necessary, but normally this just involves hitting enter
 
Not sure this holds much relevance anymore, as I have all IDEs and Editors setup to convert from one to the other, plus most of these offer the ability to copy either as spaces or tabs.

Anyway for interest sake; it's 2 spaces.
 
Spaces. Someone will f up their tabs otherwise.
 
Top
Sign up to the MyBroadband newsletter
X