google / google/google-java-format
Allow chaining native Reformat Code with google-java-format IntelliJ Plugin
- Linguagem predominante
- Java
- Estrelas
- 6.2k
- Forks
- 937
- Merge médio
- 6min
- PRs com merge (30d)
- 3
Descrição
The documentation for Using the formatter > IntelliJ/Android Studio/JetBrains IDEs states: "When enabled, the plugin fully replaces the native Reformat Code and Optimize Imports actions."
This design prevents developers from leveraging IntelliJ's built-in Code Style features (e.g., automatically adding a blank line after class headers via Editor > Code Style > Java > Blank Lines > After Class Header), even though this requirement aligns with our team's coding conventions and does not conflict with google-java-format rules.
Our current workaround is to first disable the google-java-format plugin for built-in code formatting, then re-enable it to apply Google Java formatting rules. This operation is very tedious and makes us feel very sad.
Guia de contribuição
Direção de pesquisa
Comece pela seção documentada Using the formatter para IntelliJ/Android Studio/JetBrains IDEs e inspecione como o plugin substitui Reformat Code e Optimize Imports. Defina as alterações de integração necessárias para que a formatação nativa possa ser executada junto com google-java-format e, em seguida, verifique se tanto as opções de estilo de código da IDE quanto a formatação do Google continuam utilizáveis.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- developer-experience, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100