add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,28 +1,28 @@
# uncrustify
> C、C++、C#、D、Java 和 Pawn 源代码格式化工具。
> 更多信息:<https://github.com/uncrustify/uncrustify>.
> 更多信息:<https://github.com/uncrustify/uncrustify>
- 格式化单个文件:
`uncrustify -f {{路径/到/文件.cpp}} -o {{路径/到/输出文件.cpp}}`
`uncrustify -f {{path/to/file.cpp}} -o {{path/to/output.cpp}}`
-`stdin` 读取文件名,写回原文件路径之前创建备份:
-`stdin` 读取文件名,并在将输出写回原文件路径之前进行备份:
`find . -name "*.cpp" | uncrustify -F - --replace`
- 不进行备份(适用于文件已在版本控制下的情况
- 不进行备份(对于版本控制下的文件很有用
`find . -name "*.cpp" | uncrustify -F - --no-backup`
- 使用自定义配置文件并将结果写入 `stdout`
`uncrustify -c {{路径/到/uncrustify.cfg}} -f {{路径/到/文件.cpp}}`
`uncrustify -c {{path/to/uncrustify.cfg}} -f {{path/to/file.cpp}}`
- 显式设置配置变量的值:
`uncrustify --set {{选项}}={{值}}`
`uncrustify --set {{option}}={{value}}`
- 生成新的配置文件:
`uncrustify --update-config -o {{路径/到/新配置文件.cfg}}`
`uncrustify --update-config -o {{path/to/new.cfg}}`