&tag(IntelliJ);
*目次 [#qdcc832b]
#contents
*参考情報 [#y427c2bb]
-[[./Rails]]
*インストール [#yd5cf8c5]
-Select VCS Integration Plugins で、GitとSubversionだけにチェック。
-Select Web/JavaEE Technology Pluginsですべてアンチェック。
-Select HTML/JavaScript Development Pluginsで全てチェック。
-Select Other Pluginsで全てアンチェック。

*キーボードショートカット [#d96695e4]
-[[PhpStormでさらに覚えるべきショートカット(IDEAもね) #PhpStorm #IntelliJ - Qiita [キータ]:http://qiita.com/items/560fda72b627aa73cc1e]]

,CMD+SHIFT+A,コマンドなどを検索して実行
,CMD+SHIFT+N,ファイルを検索
,OPT+ENTER,Quick Fix
,CTRL+SHIFT+F,プロジェクトから検索
,OPT+CMD+矢印左右,戻る/進む

*設定 [#jafea6af]
**フリーカーソルをやめる [#f7c5c13e]
-Editor > Allow placement of caret after end of line のチェックを外す


**初期状態に戻す [#e351f884]
-うっかり大量のプラグインを入れてしまったときなど初期状態に戻したいときがある。
-http://devnet.jetbrains.com/docs/DOC-181 に設定の場所が乗っているので、ConfigとPluginsフォルダを削除すればよい。
--Config: ~/Library/Preferences/IntelliJIdeaXX
--Plugins: ~/Library/Application Support/IntelliJIdeaXX

**バージョン管理から除外するファイルとは何か [#n6da4907]
-[[How to manage IntelliJ IDEA projects under Version Control Systems :: JetBrains Developer Community:http://devnet.jetbrains.com/docs/DOC-1186]]。
#pre{{

.ipr file based format
Share the project .ipr file and and all the .iml module files, don't share the .iws file as it stores user specific settings.
 
.idea directory based format
Share all the files under .idea directory in the project root except the workspace.xml and tasks.xml files which store user specific settings, also share all the .iml module files.
}}
-.iplファイルと、.imlファイルの全て共有する。.iwsファイルは共有しない。
-.ideaディレクトリは共有する。workspace.xmlとtasks.xmlは共有しない(ユーザー毎の設定が保存されているので)。imlは共有する。

**LiveEditする [#c54e201b]
-PluginでLiveEditプラグインをインストールする。
-View→Live Editで、LiveEditを有効にする。ブラウザで編集中のノードが変わるのはさけられない(?)

**HTMLやJavaScriptを閲覧するブラウザを選択する [#w26f3bf2]
-[[Running and Debugging JavaScript:https://www.jetbrains.com/webstorm/webhelp/running-and-debugging-javascript.html]]。コードにマウスオーバーするとブラウザー選択用アイコンがポップアップするとあるのだが、表示されたりされなかったり。OPTION+F2の方が確実。

*JavaScript開発 [#y7661006]
**プロジェクトの作成 [#l1dc5f4e]
-New Projectで、Web Moduleを選択する。
**jQueryの使用方法 [#d4dad670]
-jquery-x.x.x.min.jsをプロジェクトにコピーするだけ。

**デバッグ [#z01294bf]
-Run→Edit Configurationsで、JavaScript Debug→Localを選択。
-名前は適当、Pathでデバッグしたいhtmlファイルを選ぶ。Browserは、Chrome/Firefoxどっちでもよい。
-後は、Debugで先ほどの設定を選んで起動すればデバッグできる。
*PHP開発 [#ea8bf6f1]
**プラグインのインストール [#acead520]
-Preferences→Pluginsで、Install JetBrains Pluginsを選択。PHPをインストールする。
-インストール後、再起動。

**インタープリターの設定 [#x1cbd042]
-Preferences→PHPで、Interpreter選択用のボタンをクリック。
-Interpreters選択ダイアログでphpバイナリのある場所を選ぶ。
--Name「MacPorts PHP 5.3」
--PHP home: 「/opt/local/bin」

**プロジェクトの作成 [#xc698899]
-Create New Project→Web Moduleを選択。

**デバッグ [#eb0b58ec]
-[[PHP Debugging Session:http://www.jetbrains.com/phpstorm/webhelp/php-debugging-session.html]]によると3つの主要な方法がある。
-Built-in Webサーバーは、PHP 5.4じゃないとだめ。
-それ以外はxdebugなどを使う方法?
*トラブルシューティング [#c491473d]
**デバッグ時に変数が表示されない [#x9e78e38]
-Debuggerペインで、「Restore Layout」を実行してみる。

**急にコード補完がきかなくなった [#h1f8fcd7]
-変なキャッシュがたまっている?フィアルを削除したり追加したりすると治るかも。

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS