Arcanelab Blog
text

Fixing the annoying curly-braces indent bug in Atom Problem: in C/C++ files the…

Fixing the annoying curly-braces indent bug in Atom

  • Problem: in C/C++ files the indentation of newly entered curly braces don’t match the previous line.
  • Fix: edit the following Atom configuration file to disable the unneeded decreased indentation:
/Applications/Atom.app/Contents/Resources/app/node_modules/language-c/scoped-properties

Remove the following regular expression from the ‘decreaseIndentPattern’ field:

^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\}\n