Skip to content

Setting Up Code Format

Reimar Schröter edited this page Apr 18, 2016 · 3 revisions

HOME < ... < Getting started < Preparing Eclipse

1. Line Endings and Encoding

  • Go to Window -> Preferences.

  • Open page General -> Workspace.

    • Set text file encoding to UTF-8.
    • Set new text file line delimiters to Unix.
  • If you already have files in your workspace with Non-Unix line endings, do the following:

    • Select all projects in the navigator or package explorer view (you can also only select the single files).
    • In the menu click on File -> Convert Line Delimiters To -> Unix.

2. Source Code Formatter

  • Go to Window -> Preferences.
  • Open page Java -> Code Style -> Formatter.
    • Click on Import... and open the file Conventions.xml in the de.ovgu.featureide.fm.core plug-in

Clone this wiki locally