The current ClangFormatAction formats either the current statement or the current selection. This PR adds two new actions:
ClangFormatFileAction: Format the whole file
ClangFormatAutoAction: Format the whole file or current selection, if there is one
Also adds ClangFormatAutoAction action to the "Code" menu under the built-in "Reformat Code". (I think that one fits in the menu since its behaviour is the same as "Reformat Code"). Changes the action text to be consistent with built-in actions.
Resolves #5
The current
ClangFormatAction
formats either the current statement or the current selection. This PR adds two new actions:ClangFormatFileAction
: Format the whole fileClangFormatAutoAction
: Format the whole file or current selection, if there is oneAlso adds
ClangFormatAutoAction
action to the "Code" menu under the built-in "Reformat Code". (I think that one fits in the menu since its behaviour is the same as "Reformat Code"). Changes the actiontext
to be consistent with built-in actions.