LoginSignup
12
12

More than 5 years have passed since last update.

[IntelliJ IDEA][備忘録]インストール直後の設定手順

Last updated at Posted at 2015-03-17

概要

IntelliJの全体設定(~/.IntelliJIdea14~/.IdeaIC14など)はバージョン管理することが難しいです(理由: Scala - [個人メモ] IntelliJ IDEA 設定ファイルマニアックス - Qiita)。
しかし各環境ごとに設定がバラバラであるのは避けたいので、設定手順とその項目をここにまとめます。
設定項目は自分向けなので汎用性はありませんが、手順は参考になるかもしれません。

特にみんなで同じコードを書くために有用なのはCode Style, Inspections, File Encodings, FIle and Code Templatesの部分です。その他の項目は操作性や好みの部分なので真似しなくてOK

手順

  1. Welcomeダイアログ | Configure | Plugins からScalaプラグインをインストール
  2. Welcomeダイアログ | Configure | Settings を開く
    1. Appearance & Behavior | Keymap からEmacsを選択
    2. Appearance & Behavior | System Settings | Startup/Shutdown からReopen last project on startupのチェックボックスを外す
    3. Editor | General | Appearance | Show line numbersをチェック
    4. Editor | General | Appearance | Show method separatorsをチェック
    5. Editor | General | Appearance | Show whitespacesをチェック
      1. Editor | General | Appearance | Show whitespaces | Leading および Innerのチェックを外す
    6. Editor | General | Editor Tabs | Tab Appearance | Show tabs in single rowのチェックを外す
    7. Editor | General | Editor Tabs | Tab Appearance | Hide file extension in editor tabsのチェックを外す
    8. Editor | General | Editor Tabs | Tab Closing Policy | When closing active editor | Activate most recently opened tabを選択
    9. Editor | General を開く
      1. Strip trailing spaces on SaveAllに変更
      2. Ensure line feed at file end on Saveのチェックボックスにチェック
    10. Editor | Colors & Fonts からScheme nameDarculaへ変更
      • (追加)Editor | Colors & Fonts | Font からDarculaスキーマをコピー、Primary fontをRicty サイズ15に変更
    11. Editor | Code Style を開く
      1. DefaultスキーマをMy Defaultスキーマとしてコピー
      2. Schemeドロップダウンメニューで選択状態になっていることを確認
      3. LIne separator (for new files)Unix And OS X(\n)に変更
      4. Right margin (columns)を100に変更(ここが100なのはStyle Guide - Declarations - Scala Documentationなどが理由だが120の人もいる)
      5. Default Indent Options | Detect and use existing file indents for editingのチェックを外す
    12. Editor | Code Style | Scala を開き、以下で指摘されている部分を変更
    13. Editor | Inspections を開く
      • Scala: General | Advanced language featuresのチェックを外す
      • Scala: Method signature | Empty-paren method accessed as parameterlessのチェックを外す
      • Scala: Method signature | Empty-paren Scala method overriden as parameterlessのチェックを外す
      • Scala: Method signature | Java accessor method called as empty-parenのチェックを外す
      • Scala: Method signature | Java accessor method overriden as empty-parenのチェックを外す
      • Scala: Method signature | Java mutator method accessed as parameterlessのチェックを外す
      • Scala: Method signature | Java mutator method overriden as parameterlessのチェックを外す
    14. Editor | File Encodings を開く
      • IDE EncodingをUTF-8へ変更
      • Project EncodingをUTF-8へ変更
      • Projerties Files | Default encoding for properties filesをUTF-8へ変更
    15. Editor | File and Code Templates | Includes で右上のエディタ画面の文字列をすべて削除(参考: java - How to edit comment template and add type or function comment in JetBrains IntelliJ IDEA? - Stack Overflow)
    16. Version Control | Confirmation | When files are created | Do not addを選択
    17. Version Control | Confirmation | When files are deleted | Do not removeを選択
12
12
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
12
12