Can I run the Eclipse c++ Formatters from the command line
I found this page which shows how to run the Java formatter but I cannot find s开发者_如何学Cimilar resources to run the built-in C/C++ formatters.
It is possible To do this?
Its possible. You can call Eclipse with he parameter: eclipse.exe -application org.eclipse.jdt.core.JavaCodeFormatter -config "./org.eclipse.jdt.core.prefs" "../lala/tmp" ...
From the eclipse doc C/C++ Development User Guide > Tasks > Using the Formatter Application:
eclipse -application org.eclipse.cdt.core.CodeFormatter [ OPTIONS ] [ -config <configFile> ] <files>
精彩评论