Sublime Forum

CoffeeScript bracket indentation

#1

I have the CoffeeScript package installed and it seems like the default indentation works like this:

MyClass.extend({ })

After typing {, the }) automatically appear, and then when you hit enter it indents the }) by 2.

I’d like it to indent to

MyClass.extend({
})

but nothing I’m changing in Indent.tmPreferences seems to be doing anything. Any ideas?

0 Likes