Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否将代码缩进自动排版? #49

Closed
bg6cq opened this issue Oct 26, 2017 · 3 comments
Closed

可否将代码缩进自动排版? #49

bg6cq opened this issue Oct 26, 2017 · 3 comments
Labels

Comments

@bg6cq
Copy link
Contributor

bg6cq commented Oct 26, 2017

您好!

目前的代码的缩进比较散,可否执行以下命令自动排版?

indent *.cpp -nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i8 -ip0 -l160 -lp -npcs -nprs -npsl -sai -saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8

谢谢

@wangyu-
Copy link
Owner

wangyu- commented Oct 27, 2017

我试了一下,代码排版风格全变了。

暂时不想改变风格。

@bg6cq
Copy link
Contributor Author

bg6cq commented Oct 27, 2017

indent *.cpp -nbad -bap -nbc -bbo -hnl -bli0 -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i8 -ip0 -l160 -lp -npcs -nprs -npsl -sai -saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8

这样行不行呢?跟您之前的风格几乎一样

@wangyu-
Copy link
Owner

wangyu- commented Oct 27, 2017

暂时先不要动缩进了。 全局缩进重排造成的diff太多,不便于版本管理。

目前的缩进还可以把,可能局部有些问题,局部改一下就可以。

有些空行是我故意加上的,把功能紧密的代码用空行隔成一块一块,隔的空行越多越不相关。重排了多行就变成单行了。

@bg6cq bg6cq closed this as completed Oct 27, 2017
@wangyu- wangyu- added the wontfix label Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants