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

Codestyle config is deleted when matching defaults #267

Open
simonzn opened this issue Jul 30, 2024 · 1 comment
Open

Codestyle config is deleted when matching defaults #267

simonzn opened this issue Jul 30, 2024 · 1 comment
Labels
question Further information is requested

Comments

@simonzn
Copy link

simonzn commented Jul 30, 2024

We commit .idea/codeStyles/Project.xml into our Git repositories to ensure that all developers use the same code style, whether they use this plugin or the bundled Protocol Buffers & gRPC plugins.

However, if our codestyle settings match the defaults of this plugin, the configuration is removed from the Project.xml as soon as the first .proto file is formatted, and if someone happens to commit the changed codestyle, everybody uses the defaults again - which depend on the plugin. E.g., default indentation for this plugin is 4 spaces whereas it is 2 spaces for the bundled Protocol Buffers plugin.

Can this be avoided, i.e. could the Project.xml be left as is, even if it contains unnecessary settings?

I admit I don't know whether this is an issue with this plugin or inherent behaviour of IntelliJ IDEA.

@devkanro devkanro added the question Further information is requested label Aug 4, 2024
@devkanro
Copy link
Owner

devkanro commented Aug 4, 2024

I think this is an inherent behavior of IDEA. I just implemented some interfaces according to the documentation. I suggest you raise an issue in the IDEA community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants