Setting Up Eclipse Profile - dogtagpki/pki GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️