我可以运行 Eclipse c++来自命令行的格式化程序

发布于 2024-09-24 17:02:05 字数 237 浏览 0 评论 0原文

我找到了此页面 显示了如何运行 Java 格式化程序,但我找不到类似的资源来运行内置 C/C++ 格式化程序。

有可能做到这一点吗?

I found this page which shows how to run the Java formatter but I cannot find similar resources to run the built-in C/C++ formatters.

It is possible To do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独自唱情﹋歌 2024-10-01 17:02:05

这是可能的。您可以使用参数调用 Eclipse:
eclipse.exe -application org.eclipse.jdt.core.JavaCodeFormatter -config "./org.eclipse.jdt.core.prefs" "../lala/tmp" ...

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" ...

青瓷清茶倾城歌 2024-10-01 17:02:05

来自 eclipse doc
C/C++开发用户指南>任务>使用格式化程序应用程序:

eclipse -application org.eclipse.cdt.core.CodeFormatter [ OPTIONS ] [ -config <configFile> ] <files>

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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文