Add settings for formatting
Makes all the formatting settings from the LS configurable :tada:. And now that we have this additional level of configuration, I figure it's a good time to hook into the format-on-type and format-on-save providers. On-type can be disabled within ide-java, and on-save can be disabled via atom-ide-ui.
I still need to figure out how to make this a smooth transition, though, as I'm sure most projects aren't following Eclipse's default formatting rules.
Fixes #109
I see a few options here:
- Add an option to ide-java that controls on-save formatting, and default both that one and the on-type formatting to off. (Note that the on-save option would be in a different section, which would be weird)
- Add a notification that pops up on upgrade letting people know about the new formatting behavior and how to customize it.
- Don't add on-save/on-type formatting. Keep it range/file-based only.
- Only enable on-save/on-type formatting if a URL is provided in settings.
- Something else?
I like the popup. Until atom has some place a person can go to look at settings across packages, it's going to be hard to discover these settings. I also think it would be okay to have a short mention of the on-save setting in the README.
I see this includes the change in #116. Any chance of getting one of these merged?