Tabs or Spaces?
This is arguably one of the most controversial questions, but I need answers. Tabs or Spaces?
Tabs or spaces? If you're coding on VS and press space four times, then go home.
Tabs because it's easier to read.
Tabs!
Tabs are four spaces saving time and tabs are not that annoying like spaces go tap tap tap tap while tabs are just tap.
I have a bad habit of using spaces lol don't burn me at the stake
My tab key actually inserts two spaces.
In my ~/.vimrc:
set softtabstop=2 shiftwidth=2 expandtab
TABS!
Pressing tabs saves time!
@PowerCoder huh?
#include <iostream>
using namespace std; class Point { public: static int number; }; int Point::number = 0; int main() { std::cout << Point::number << "\n"; }
Repl's default is two spaces and I do not hate it but tabs are the way to go (This is my Opinion)
Default on repl is 2 spaces
Also:
SPACES BEST
@Codemonkey51 so you press space every time?
Nope return(enter) auto does it on most ide's @DynamicSquid
so you press space every time?
Any good editor lets you press the <tab> key and insert spaces.
@CodeLongAndPros, @Codemonkey51 I know, but were talking about in a situation like this:
void function()
{
int var;
}
Do you press space or tab?
@DynamicSquid Tab. Vim inserts two spaces.
Tabs, easy.