问题
Is there an option to automate the context menu/Source/Optimize includes
functionality? Perhaps on file save, or on exiting or starting the IDE ...
Failing that, is there a plug-in?
回答1:
I assume you mean Organize Includes.
I'm not aware of a built-in way to configure that to run after every file-save, nor of a plugin that would do it.
Consider filing a bug requesting that an option to run Organize Include be added to Preferences -> C/C++ -> Editor -> Save Actions.
来源:https://stackoverflow.com/questions/39363952/eclipse-cdt-automating-organize-includes