-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement "format region" feature for formatters with native support #150
Comments
In case you do not know about clang-format.el. I hope this could help you. |
Thanks. For reference, from https://clang.llvm.org/docs/ClangFormat.html:
|
From
|
From
|
lassik
added a commit
that referenced
this issue
Aug 12, 2021
Implement for clang-format, emacs-lisp, prettier, swiftformat. A :features field is added into formatter definitions. Since most formatters do not support formatting the region, (:features region) indicates the ones who do. Bumps the minimum Emacs version from 24.3 to 24.4.
Done. If there are other formatters that also have region support, please send PRs updating their definitions! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Continued from #17
The following formatters already have this:
We should add a
format-all-region
command to use the feature.If you know of other formatters that also have official command line flags for formatting a region, please mention!
The text was updated successfully, but these errors were encountered: