-
Notifications
You must be signed in to change notification settings - Fork 44
Add .editorconfig #295
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
base: dev
Are you sure you want to change the base?
Add .editorconfig #295
Conversation
The settings are from: https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml With the following exceptions: - Star imports allowed - Hard wrap increased to 120 characters - No blank lines after class declaration required - Tab size & indent increased to 4 characters - Continuation Indent increased to 8 characters (These changes help the auto formatter more closely align with the code already written)
Is there a more general format for multi editor? Eclipse and vscode are both used by other contributors. Vscode supports eclipses format, does intellij support it? |
Hi, Sorry for the late reply (I was on vacation). IntelliJ has a way to export the IntelliJ formatter settings I created into an Eclipse XML, so I think we should be fine if we just have the IntelliJ & Eclipse settings together. I don't use Eclipse so I don't know where it creates the files when configuring the autoformatter settings. (If you do, could you enable the autoformatter/change a few settings and take a screenshot of what the file structure it creates looks like so I could put the files in the correct location?) |
I just checked, eclipse, vscode, intelliJ and neovim all support EditorConfig this would probably be the better choice as its not editor dependent |
You can also export intellij's format to editor config |
Ok changed I just changed it to use .editorconfig |
The settings are from:
https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml
(Google Java Style)
With the following exceptions:
(These changes help the auto formatter more closely align with the code already written)
Note: I haven't reformatted any of the already existing code. I can run it if you'd like (as quite a bit of it doesn't follow the guidelines)