-
Notifications
You must be signed in to change notification settings - Fork 3
Java Code Style Guide
PDS EN has chosen the Google Java Style Guide as our default style guide. As best as possible, try to adhere to this guide.
For integrating this styling into your development workflow for Eclipse:
- Download Google Style Guide profile: https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml
- To set default
Format
functionality, open Eclipse and go toEclipse
>Settings
>Java
>Code Style
>Formatter
>Import
> Select downloadedeclipse-java-google-style.xml
. This sets your default formatting. - To apply style on
Clean up
, go toEclipse
>Settings
>Java
>Code Style
>Clean up
>Edit
> SelectFormat source code
. - To apply style on
Save
, go toEclipse
>Settings
>Editor
>Save Actions
> SelectPerform the selected actions on save
> SelectFormat Source Code
For integrating this styling into IntelliJ IDEA, follow the instructions here. Also, there is a more detailed article on configuring and using the code formatter in IntelliJ IDEA is available here.
Copyright © 2021-2024 California Institute of Technology.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.