Can Uncrustify be prevented from modifying certain sections of code?

后端 未结 1 797
慢半拍i
慢半拍i 2021-02-05 13:00

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

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 13:38

    /* *INDENT-OFF* */
    int i = 0; // No uncrustify action here
    /* *INDENT-ON* */
    

    0 讨论(0)
提交回复
热议问题