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

[功能请求] Java 代码的格式化配置 #4429

Open
Tiphereth-A opened this issue Nov 2, 2022 · 0 comments
Open

[功能请求] Java 代码的格式化配置 #4429

Tiphereth-A opened this issue Nov 2, 2022 · 0 comments

Comments

@Tiphereth-A
Copy link
Member

我遇到的问题是

目前 OI-wiki 使用 clang-format 来对代码做自动格式化, 然而目前的 .clang-format 配置中只配置了 C++ 代码的, 而没有配置 Java 等语言, 这导致其他语言代码的格式有一些需要改进和统一的部分, 比如目前 OI-wiki 中 Java 代码的缩进是 4 个空格, 而 C++ 的是 2 个空格

我希望能有这样的解决方案

在 .clang-format 中添加 Java 等语言的相应配置

我觉得这些备选方案也可以接受

No response

@Tiphereth-A Tiphereth-A changed the title [功能请求] Java 代码的 clang-format 格式化配置 [功能请求] Java 代码的格式化配置 Nov 2, 2022
Tiphereth-A added a commit that referenced this issue Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant