[英]Can I convert a .clang-format file to the Eclipse formatter format?
I'm using Eclipse CDT to work on a repository which has a.clang-format file, and would like to use it.我正在使用 Eclipse CDT 在具有 .clang 格式文件的存储库上工作,并希望使用它。 So - can I somehow convert it into the XML format which the Eclipse formatter uses?
那么-我可以以某种方式将其转换为 Eclipse 格式化程序使用的 XML 格式吗?
Note: The reverse direction is the subject of this question .注意:反向是这个问题的主题。
Well, the simplest solution is not to use Eclipse CDT.好吧,最简单的解决方案是不使用 Eclipse CDT。 Here you can find a simple extension that will use clang format https://marketplace.eclipse.org/content/cppstyle
在这里你可以找到一个简单的扩展,它将使用 clang 格式https://marketplace.eclipse.org/content/cppstyle
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.