Netbeans Auto-Indentation does this