rosshemsley / SublimeClangFormat

A C++ code formatter based on Clang Format, for beautiful code with minimal effort in Sublime Text 3
Other
185 stars 52 forks source link

format_on_save #32

Open gurmukhp opened 8 years ago

gurmukhp commented 8 years ago

For some reason, even though I have format_on_save as true, the file doesn't format. Clicking super+option+a seems to work though.

This is my config:

{
"style": "Google",
  "format_on_save": true
}
salarkhan commented 8 years ago

Having the same issue. Preferences.sublime-settings looks like this:

"settings": {
  "ClangFormat": {
    "format_on_save": true
  }
}
cenit commented 6 years ago

the plugin does not read Preferences.sublime-settings. Instead, use the file clang_format.sublime-settings with the tags described in this file: https://github.com/rosshemsley/SublimeClangFormat/blob/master/clang_format.sublime-settings