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

Use Google Java Code Style #2

Open
github-throwaway opened this issue Dec 9, 2019 · 0 comments
Open

Use Google Java Code Style #2

github-throwaway opened this issue Dec 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@github-throwaway
Copy link
Contributor

Installing the coding style settings in Eclipse

Google Java Code Style

Download the eclipse-java-google-style.xml. Under Window/Preferences select Java/Code Style/Formatter. Import the settings file by selecting Import.

Configure save actions to automatically format your code when saving

In the Preferences menu, select Java -> Editor -> Save Actions.

Select Perform the selected actions on save.
Select Format source code.
Click the Formatter” link and ensure the “GoogleStyle formatter is selected as active.
Click OK.

Now, whenever you make changes to your code, you can use the format source code menu item, or just save the file and formatting will be applied automatically.

@ACassimiro ACassimiro added the enhancement New feature or request label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants