Skip to content

Setting Up Eclipse Profile

Endi S. Dewata edited this page Oct 31, 2022 · 2 revisions

Configuring Java Coding Style

Go to ProjectPropertiesJava Code StyleFormatter:

  • Enable project specific settings

  • New Profile

    • Name: PKI

    • Initialize settings with the following profile: Java Conventions

  • Tab policy: Spaces only

  • Indentation size: 4

  • Tab size: 8

Configuring Java Editor

Go to ProjectPropertiesJava EditorSave Actions:

  • Enable project specific settings

  • Perform the selected actions on save

    • Organize imports

    • Additional actions

      • Remove trailing whitespace

      • Remove unused imports

      • Remove unnecessary casts

      • Don’t add missing annotations

Clone this wiki locally