Change default tab size to 2 spaces


#1

Its sucks to constantly have to remember to set the tab size to 2 spaces in my preferences every time I start a project. We’re all stuck with a default of 4 spaces because someone at C9 decided to make that the default five years ago? How about bringing C9 in line with modern best practices and making the default spacing 2 not 4.


#2

You can already do this. In the IDE menu “Coud9 -> Open Your Init Script”. Then add this line:

services.settings.set("project/ace/@tabSize", 2);

Support helped me out with that many months ago. I’m surprised it’s not easier but it works like charm.