Installing eclipse on mac osx

準備

Download

Install

  • Open “Eclipse Installer.app”
  • “Eclipse IDE for PHP Developers”を選択。
  • “Installation folder” : /Applications/php-oxygen
  • Click to “Accept now”

Settings

  • https://www.drupal.org/docs/develop/development-tools/configuring-eclipse

Theme

  • Path : Preferences > Appearance
    1. Theme: “Dark”
    2. Color and Font theme: Default(current)
    3. Checked “Enable animations”
  • “Apply”

File encoding and characters

  • Path: General -> Workspace:
    1. “Text file encoding:” > Other : “UTF-8”
    2. “New text file line delimiter” > Other: “Unix”

Spaces are used instead of tabs

  • Path: General -> Editors -> Text Editors:
    1. Check “Insert spaces for tabs.”
    2. PHP -> Code Style -> Formatter: Set Tab policy: Spaces. Set “Indentation size” to “2”.

Removing trailing whitespaces

  • Path: Preferences->PHP->Editor->Save Actions
    1. check ‘Remove trailing whitespace’ and select ‘All lines’.

コメントを残す