【Eclipse】Eclipseの設定あれこれ

Eclipse 導入時にやっておきたい設定

 * 要するにオレオレ設定。

[Window]-[Preferences]-[General]-[Editors]

行番号

 * [Window]-[Preferences]-[General]-[Editors]の「Show line number」にチェックをつける

空白の表示

 * [Window]-[Preferences]-[General]-[Editors]-[Text Editor]の「Show Whitespace characters」にチェックをつける

XMLファイルをデフォルト・テキストエディタで開く

 * [Window]-[Preferences]-[General]-[Editors]-[File Associations]で「.xml」を追加し「Text Editor」を選択

[Window]-[Preferences]-[Java]-[Code Style]-[Formatter]

準備

 [1] [Window]-[Preferences]-[Java]-[Code Style]-[Formatter]で「New」ボタン押下
 [2] 「Profile Name」を任意の名前を入力し、「Initialize settings with the following Profile」で任意の設定を選び
     「OK」ボタン押下

空白文字「半角SP」の設定

 [1] [Window]-[Preferences]-[Java]-[Code Style]-[Formatter]で上記の「準備」で行ったProfileが選択状態で
    「Edit...」ボタン押下
 [2] 「Indentation」タブ選択し、「Tab policy」で「Space only」を選択

Antについて

 * 以下の関連記事を参照のこと。
http://blogs.yahoo.co.jp/dk521123/35340128.html

その他

パッケージを階層表示

 * Eclipseの[Package Explorer]の上部にある[▽] アイコン -[Package Presentation]-[Hierarchical] で表示
http://d.hatena.ne.jp/torazuka/20090715/1247585159