0

Indentation of brackets for C++

Alexander Strebkov 13 years ago updated 13 years ago 0
Your user configuration file must has the following values:
"trim_automatic_white_space": false,"ensure_newline_at_eof_on_save": true,"auto_match_enabled": false
Do it in order to reproduce the bug:
  1. Open new file (Ctrl + N)
  2. Set C++ syntax style
  3. Just press enter (insert new line)
  4. Press up key (return to the first line)
  5. Type "class Foo"
  6. Press enter
  7. Type "{"
  8. Press enter
  9. Type "}"
Last closed bracket won't be indented automatically. Type "}" again - this bracket will be indented.

I've attached the video file because my English leaves much to be desired:

Youtube video