Skip to content

[IOTDB-1156] Add IDE instructions for Code Formatting#2686

Merged
jixuan1989 merged 2 commits intoapache:masterfrom
sunjincheng121:PR1156
Feb 17, 2021
Merged

[IOTDB-1156] Add IDE instructions for Code Formatting#2686
jixuan1989 merged 2 commits intoapache:masterfrom
sunjincheng121:PR1156

Conversation

@sunjincheng121
Copy link
Member

Add IDE instructions for Google Java Code Formatting.

We use the [Spotless
plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven) together with [google-java-format](https://github.com/google/google-java-format) to format our Java code. You can configure your IDE to automatically apply formatting on saving with these steps:

1. Download the [google-java-format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be installed in IDEA..
Preferences -> plugins -> search google-java-format

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about More detailed setup manual?

@jixuan1989 jixuan1989 merged commit a9f9f1d into apache:master Feb 17, 2021
chenjun40 added a commit to chenjun40/iotdb that referenced this pull request Feb 17, 2021
[IOTDB-1156] Add IDE instructions for Code Formatting (apache#2686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants