Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Current »

Once you have an Eclipse installation at your fingertips, it's time to configure it. This guide will walk you through the necessary steps. Fire up the Preferences dialog, and let's get started.

Editor Settings

  • General -> Editors -> Text Editors
    • Check Insert spaces for tabs
    • Set Print margin column to 105
  • General -> Workspace
    • Make sure the Text file encoding is set to UTF-8

Java Settings

  • Java -> Code Style -> Code Templates
    • Import this file to automatically add our license text to the start of every file
    • Check Automatically add comments for new methods and types
  • Java -> Code Style -> Formatter
    • Import this file to make the formatter compatible with our Checkstyle settings
  • Java -> Compiler
    • Set the Compiler compliance level to 1.8
  • Java -> Compiler -> Building
    • Under Build path problems, set No strictly compatible JRE for execution environment available to Ignore to avoid warnings
  • Java -> Compiler -> Errors/Warnings
    • Under Potential programming problems, set Incomplete 'switch' cases on enum and 'switch' is missing default case to Ignore.

Checkstyle

Git Settings

  • Team -> Git -> Configuration
    • Check whether user name and email are configured in User Settings. If not, add two new entries:
      1. Key = user.name, Value = <your name>
      2. Key = user.email, Value = <your email address>
  • No labels