CLOVER🍀

That was when it all began.

IntelliJの設定まとめ

CentOSUbuntuに移るにあたり、IntelliJも移行することになっているのですが、いい機会なので設定をまとめておきましょう。

あくまで、個人の好みの設定、です。

Keymap以外

Code Style -> General

「Class count to use import with '*'」 は50くらいまで引き上げ

Code Style -> Imports

「Import Layout」は、以下の順になるように。

import java.*
import javax.*
<blank line>
import all other imports
<blank line>
import static all other imports
Code Style -> Scala

「Add full qualified imports」にチェック。

Maven -> Importing

「Automatically download」の「Sources」と「Documentation」にチェック。

Build, Execution, Deployment -> Compiler -> Annotation Processors

「Enable annotation processing」にチェック。

Appearance & Behavior -> System Settings

「Reopen last project on startup」のチェックを外す。

Editor

Visual Spaceで、以下を編集。
「Allow placement of caret after end of line」のチェックを外す。
※カーソルが、実際の行より後ろに行くのが気持ち悪い人向け
「Show virtual space at file bottom」にチェック。

Editor -> Appearance

「Show line number」にチェック。
「Show whilespaces」にチェック。

Editor -> Editor Tabs

「Tab Closing Policy」の「Tab limit」を、20くらいに。

Editor -> Code Completion

Case sensitive completion」をNoneに変更。

以下、Keymap
Emacs」をベースにカスタマイズ。

All Actions -> Editor Actions -> Emacs Tab

「Ctrl+I」を追加。

All Actions -> Main menu -> Edit -> Copy

「Alt+W」、「Ctrl+C」を追加。

All Actions -> Main menu -> Edit -> Find -> Previous Occurrence of the World at Caret

「Ctrl+Shift+F3」を削除。

All Actions -> Main menu -> Search -> Find Next

「F3」を削除。

All Actions -> Main menu -> Search -> Find Previous

「Shift+F3」を削除。

All Actions -> Main menu -> Go To -> Declaration

「F3」を追加。

All Actions -> Main menu -> Code -> Implement Methods...

「Ctrl+I」を削除。

All Actions -> Main menu -> Window -> Editor Tab -> Select Next Tab

「Ctrl+Tab」と「Ctrl+X, O」を削除。
Linuxの場合

All Actions -> Main menu -> Window -> Editor Tab -> Select Previous Tab

「Ctrl+Shift+Tab」を削除。

All Actions -> Main menu -> Code -> Reformat Code

「Ctrl+Alt+L」を割り当て。
Linuxの場合

All Actions -> Other -> SwitchUp

「Alt+Shift+Up」を割り当て。

All Actions -> Other -> SwitchApply

「Alft+Shift+Enter」を割り当て。

All Actions -> Other -> SwitchLeft

「Alft+Shift+Left」を割り当て。

All Actions -> Other -> SwitchRight

「Alft+Shift+Right」を割り当て。

All Actions -> Other -> SwitchDown

「Alft+Shift+Down」を割り当て。

こんなとこかな?