本文介绍了如何抑制“缩进”从执行选项中未指定的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用缩进来有选择地格式化一些代码异常。对于

示例,在if之后括号等等。但是,当我使用缩进程序与 -

bl选项时,它还会执行其他操作并更改整个源

代码到一些编码风格。它可能是GNU编码风格。但是,我/ b $ b只想要后面的括号。待修复和其他来源

代码不受影响。怎么办呢?

I want to use indent to selectively format some code anomalies. For
example, braces after if, etc. But, when I use the indent progam with -
bl option, it does other things as well and changes the whole source
code to some coding style. It''s probably the GNU coding style. But, I
want only the "braces after if" to be fixed and rest of the source
code to be untouched. How can this be done?

推荐答案



为什么要在comp.lang.c中询问?也许comp.unix.programmer或
comp.os.linux.development.apps将是一个更好的起点。


-

Richard Heathfield< http://www.cpax.org.uk>

电子邮件:-www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

Why are you asking in comp.lang.c? Perhaps comp.unix.programmer or
comp.os.linux.development.apps would be a better starting point.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999




为什么要在comp.lang.c中询问?也许comp.unix.programmer或
comp.os.linux.development.apps将是一个更好的起点。


Why are you asking in comp.lang.c? Perhaps comp.unix.programmer or
comp.os.linux.development.apps would be a better starting point.



如何使用像往常一样在Windows上缩进,即使我在linux上更频繁地工作
?至少在这里引起了一个回应。

What about using indent on Windows, as I usually do, even though I work
more often on linux? Here, at least, a response was elicited.



为什么要在comp.lang.c中询问?也许comp.unix.programmer或
comp.os.linux.development.apps将是一个更好的起点。


Why are you asking in comp.lang.c? Perhaps comp.unix.programmer or
comp.os.linux.development.apps would be a better starting point.



如果在Windows上使用缩进,正如我通常所做的那样,即使我在Linux上更经常工作


What about using indent on Windows, as I usually do, even though I
work
more often on linux?



哎呀!你说得对。我的答复应该更为一般。

我对OP表示歉意。 (事实上​​,只要看一眼文章的标题

就表明OP确实在使用Windows,尽管现在很难确定它们是b $ b。)所以我想将comp.os.ms-windows.programmer.win32

添加到混音中。


-

Richard Heathfield< http://www.cpax.org.uk>

电子邮件:-www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

Whoops! You''re quite right. I should have been more general in my reply.
My apologies to the OP. (Indeed, a glance at the article''s headers
suggests that the OP is indeed using Windows, although it''s hard to be
certain nowadays.) So I should add comp.os.ms-windows.programmer.win32
to the mix, I guess.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


这篇关于如何抑制“缩进”从执行选项中未指定的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 16:47