Automatic ident on typing


#1

Is there a nice package to auto-ident statments?

if I type: if(

automatically would be cool to have the result: if ( )

the same for the brackets if ( ){ would be: if ( ) {

or can I check this with linter, and warn when not being followed? how?

tks.