ラベル Intellij の投稿を表示しています。 すべての投稿を表示
ラベル Intellij の投稿を表示しています。 すべての投稿を表示

2016年4月11日月曜日

IntelliJ IDEAのファイル自動保存を停止する方法

以下の手順でファイルの自動保存を停止できます

Preferences→Apperance & Behavior→System Settings→Synchronization
の「Save files on frame deactivation」を外す

2015年6月24日水曜日

IntellijのFormatterをかけないようにするには

IntellijのFormatterをかけないようにするには

Intellijでファイルを保存すると、自動的にファイルをせいけいしてくれます。
ためには(例えば配列などに)Formatterをかけたくないコードがありますよね
Formatterをかけないようにする方法は、
Step1、Intellijの 「Intellij IDEA」→「preferences...」→「Editor」→「Code Style」→「Formatter Control」→「Enable formatter markers in comments」をチェックする



Step2、フォーマットしてほしくない始点で @formatter:off、終点で @formatter:on を設置する。
例:
  // @formatter:off    /** 名前 */    private Long name; 

    /** ID */    private Long id;
    // @formatter:on

2015年4月1日水曜日

intellij IEDA環境でplay frameworkのアプリケーションをデバッグする方法

Step1,「run」の「Edit Configurations」で新しい「remote」設定を作成
 「Name」欄に 「playframework」など任意な名前を入力
 「Port」欄に「9999」を設定

Step2,ターミネーターでdebug起動
$ activator -jvm-debug 9999
> run

2014年12月25日木曜日

IntelliJ IDEAのよく使うショートカットキー

行のコピー: cmd+D
行の削除: cmd+Y (eclipseはctrl+d)
宣言 Declaration: cmd+B or alt+cmd+B
Text to find: shift + cmd + f
Extract Method: alt+cmd+M
Inline: alt+cmd+N
Extract Variable:alt + cmd + v
find usage: alt + F7
ファイル名で開く: shift + cmd + N
rename : shift + Fn+f6
recent files: cmd+E