Automatic Spacing after hitting 'Enter' on brackets/tags


#1

I really liked this feature in Sublime Text where when I’m inside a bracket and I hit ‘Enter’, it puts my cursor on a newline with the closing bracket at the bottom.

This is what I mean:

function hello(){*cursor*}

Right now, Atom does this when I hit Enter:

function hello(){ 
*cursor*}

But I want it to end like this:

function hello(){
*cursor* 
}

Is this a snippet config? Does anyone know how to change this?


#2

It is fixed in 0.68.0, changelog here http://latestatomversion.com/


#3

Weird, mine is on 0.71.0 and it still isn’t indenting properly. Do I have to fix a config somewhere?


#4

Same, on 71.0 and still seeing the “old” way


#5

I know this is an old conversation, but hitting COMMAND + RETURN makes this work as you wish in 0.153