- Keymap:Eclipse(Mac)
- 警告を除外:Preferences > Editor > Inspections
- Redundant local variables:retrun前の説明変数などの警告をオフ
- Lambda can be repalced with method reference:メソッド参照の警告をオフ
- 不要なものを外す
- sout は sysout に変更する
参考:http://d.hatena.ne.jp/masanobuimai/20130218/1361668361
- Imports
- Class count to use import with '*':99
- Names count to use static import with '*':99
- Packages to use Import with '*' に
static org.junit.Assert
を追加
- Java > Optimize imports on the fly:チェック
- Java > Add unambiguous imports on the fly:チェック
重複している状態で保存すればよい(重複しているものを削除するか問い合わされる)
- Quickメニュー:Command + 1 をアサインする(Other > Show Intention Actions)
- 変数設定:Command + 2, L をアサインする(Main menu > Refactor > Extract > Variable)
- リネーム:Command + Optoin + R 、および F2 をアサインする(Main menu > Refactor > Rename)
- メソッド一覧:Command + O をアサインする(Main menu > Navigate > File Structure)
- 定義先にジャンプ:F3 をアサインする(Main menu > Navigate > Declaration)
- 参照先にジャンプ:Command + Shift + G をアサインする(Main menu > Edit > Find > Find Usages)
- クラスを探す:Command + Shift + T をアサインする(Main menu > Navigate > Class...)
- テストクラスへ移動(なければテストクラス生成):Command + 9 をアサインする(Main menu > Navigate > Test)
- テストの実行:Command + 0 をアサインする(Other > Run context configuration)
- デバッグ実行:Command + Shift + 0 をアサインする(Other > Debug context configuration)
- 前テストの再実行:Command + F11 をアサインする(Main menu > Run > Run)
- 次ステップ:F6
- 次ブレイク:F8
- 次カーソルまで:Command + R
- コード整形:Command + Shift + F をアサインする(Main menu > Code > Reformat Code)
- Eclipseフォーマッタを読み込み可能