简体   繁体   English

我可以将 a.clang 格式文件转换为 Eclipse 格式化程序格式吗?

[英]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.

相关问题 将 eclipse 格式转换为 .clang-format 或在 vscode 中使用 eclipse 格式器 - convert eclipse formating to .clang-format or use eclipse formatter in vscode Eclipse格式化程序:如何格式化注释中的数组 - Eclipse formatter: how do I format arrays in annotations 如何将一批Mavenized示例转换为Eclipse可以理解的格式? - How can I convert a batch of Mavenized examples into a format that Eclipse understands? eclipse无法格式化html文件 - eclipse can not format the html file 我无法在Eclipse中使用逗号格式化 - I can't format with comma in eclipse 我可以在Eclipse中格式化整个项目吗 - Can i format full project in eclipse 如何使用 spark (Eclipse) 从 Elasticsearch 读取数据并将其转换为表格格式 - How can i read data from Elasticsearch using spark (Eclipse) and convert it into tabular format Eclipse JavaScript代码格式化程序和JSHint匿名函数格式冲突 - Eclipse JavaScript code formatter and JSHint anonymous function format conflict Eclipse格式化程序每次都会替换格式(并且不会分割一行) - Eclipse formatter alternates format each time (and won't split a line) google-java-format eclipse 插件忽略格式化程序:关闭评论 - google-java-format eclipse plugin ignoring formatter:off comments
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM