Sign in
Log inSign up
What do you prefer while programming, Tabs or Spaces when indenting code?

What do you prefer while programming, Tabs or Spaces when indenting code?

Joshua Pack's photo
Joshua Pack
·Feb 5, 2016

Tabs

58%

2 Spaces

20%

4 Spaces

18%

Any Spaces, just not Tabs!

4%

138 votes · Closed

I wanted to see what everyone here used. I heard in languages like Haskell, spaces are a must. In Makefiles, TABS are a must.

But let's talk about our personal preference! Mine personally is 2 spaces. I feel like the code is easier to read. However, in my IDE, I press the Tab button to create the 2 space indentation.

So what do you prefer?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct