re: Tabs vs. Spaces VIEW POST

  1. Whatever the existing style guide uses.
  2. If no style guide exists, spaces because it keeps the whitespace simple.

You're already using spaces in your code, say:

Thing thingOne = new Thing(); // Spaces in between each item
    Thing thingOne... // and spaces before!

So why introduce another whitespace character? Now deleting a whitespace has different effects depending on where it is. Now I have to :set list to see whitespace to be able to edit a file and know what's going to happen.


Btw, no one is hitting their space bar 4 or 8 times. You hit tab button to insert spaces to the next tabstop or shift-tab to delete to the previous.

code of conduct - report abuse