Uncrustify可以从修改code的某些部分pvented $ P $? [英] Can Uncrustify be prevented from modifying certain sections of code?
本文介绍了Uncrustify可以从修改code的某些部分pvented $ P $?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Uncrustify是伟大的,不整理code出色的工作。
不过,我有一个文件中的一些C code,我不想Uncrustify改变。有没有什么办法可以从触摸此,也许通过把特定的标签注释周围code或某事prevent Uncrustify?
解决方案
/ * * INDENT-OFF * * /
INT I = 0; //这里没有uncrustify行动
/ * * INDENT-ON *。* /
Uncrustify is great, and does an excellent job of tidying code. However, I have some C code within a file that I don't want Uncrustify to change. Is there any way I can prevent Uncrustify from touching this, maybe by putting specific tags in comments around the code or something?
解决方案
/* *INDENT-OFF* */
int i = 0; // No uncrustify action here
/* *INDENT-ON* */
这篇关于Uncrustify可以从修改code的某些部分pvented $ P $?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文