SublimeClangFormat icon indicating copy to clipboard operation
SublimeClangFormat copied to clipboard

Incorrect documentation on how to configure format on save

Open sunapi386 opened this issue 7 years ago • 1 comments

The readme currently shows this:

{
  "folders": [],
  "settings": {
    "ClangFormat": {
      "format_on_save": true
    }
  }
}

But really this doesn't work. It needs to be this:

{
    "format_on_save": true
}

sunapi386 avatar Aug 26 '17 07:08 sunapi386

The readme's example is for configuring that setting in a project.sublime-settings file (for project-specific settings). The example you specify is how you set it globally.

I agree it would be worth making this a bit more clear (adding some emphasis/styling on "project.sublime-settings"), and adding the global settings modification example.

landalex avatar Sep 25 '17 18:09 landalex