LoginSignup
13
11

More than 5 years have passed since last update.

IntelliJ IDEAでeclipseのコードフォーマッターを使用する

Posted at

IntelliJ IDEAでeclipseのコードフォーマッターを使用する方法を紹介します。

まずはeclipseからコードフォーマッターのプロファイルをエクスポートします。
WS000012.JPG

File > Settings > Pligins を選択し、「Browse Respositories」ボタンをクリック。「formatter」で検索し、表示されるリストにある「Eclipse code formatter」をダブルクリックし、インストールします。
WS000003.JPG

ダウンロード、インストールしたら、IntellJ IDEAを再起動します。

WS000005.JPG

フォーマットする対象を選択し、Ctrl + Alt + L (または Code > Reformat Code)をクリックします。
WS000005.JPG

以下のように、eclipseのフォーマットプロファイルでソースコードが整形されます。

WS000006.JPG

13
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
11