LoginSignup
8
10

More than 5 years have passed since last update.

IntelliJのファイルヘッダーコメントを変更する

Posted at

はじめに

IntelliJでScalaファイル等を生成したときに作られるコメントをJavadoc的にしたい

/**
 * @author iwamatsu0430
 */

こんな感じ

フォーマットの変更

Preference > Editor > File and Code Template から Includes タブの File Header を選択
いきなり書き変えられる。

/**
 * @author ${USER}
 */

${USER}の変更

デフォルトではログインユーザ名になっているので、好きな名前が勝手に入るように変更する。
IntelliJのディレクトリ配下にあるbin/idea.vmoptionsを参照する。
(MacでApplicationディレクトリに入れているのであれば/Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/bin/idea.vmoptionsとかになる)

ファイルを適当なエディタで開き、以下のようにする。

-Duser.name=iwamatsu0430

IntelliJを再起動すれば反映される。

8
10
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
8
10