我可以将.cl​​ang格式的文件转换为Eclipse格式化程序的格式吗? [英] Can I convert a .clang-format file to the Eclipse formatter format?

查看:84
本文介绍了我可以将.cl​​ang格式的文件转换为Eclipse格式化程序的格式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse CDT在具有.clang格式文件的存储库上工作,并且想使用它.那么-我能以某种方式将其转换为Eclipse格式化程序使用的XML格式吗?

I'm using Eclipse CDT to work on a repository which has a .clang-format file, and would like to use it. So - can I somehow convert it into the XML format which the Eclipse formatter uses?

注意:相反的方向是此问题的主题.

Note: The reverse direction is the subject of this question.

推荐答案

最简单的解决方案是不使用Eclipse CDT.在这里,您可以找到一个简单的扩展名,它将使用clang格式 https://marketplace.eclipse.org/content/cppstyle

Well, the simplest solution is not to use Eclipse CDT. Here you can find a simple extension that will use clang format https://marketplace.eclipse.org/content/cppstyle

这篇关于我可以将.cl​​ang格式的文件转换为Eclipse格式化程序的格式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆