idealize you
DESCRIPTION
IntelliJ IDEA入門。一番最初に覚えてほしいオススメ機能とか、IDEAを使う理由の考察。TRANSCRIPT
IDEALIZE YOU@mumoshu
自己紹介
九岡 佑介(クオカ ユウスケ)
twitter: @mumoshu
福井県出身
東京でWebエンジニア(2年)
京都でSNS、iPhoneアプリ開発、 ログ解析とか(3年)
趣味ではPlay framework 2.xやUnity
もちろんIntelliJ IDEAも!
Topics
お話すること
これだけは覚えてほしい!
オススメ機能
時間があれば
操作デモ
少しだけ
IDEに何を期待する?
Features
IntelliJ IDEAの機能
Git IntegrationSubversion IntegratoinGitHub IntegrationLocal HistoryPlay framework 2.0 supportVelocityA lot of pluginsDarcula is coolOverride methodsImplement methodsRename refactoringMove refactoringExtract variables
Extract methodsType HierarchyCode CompletionSmart Type CompletionGenerate CodeJavaScalaRubyPHPJavaScriptCoffeeScriptTypeScriptHTMLXHTML
CSSLESSSCSSSASSXMLSBTMavenAntDocumentation PopupCode formattingCopyrightCode generationDatabaseJIRA
この中から
選べと言われても…
そうだ
IDEAに訊いてみよう
PRODUCTIVE GUIDE生産性ガイド
IDEAの利用状況と使い方を一望できます
Productive Guide
機能名 分類 利用回数
説明
Productive Guide
たまに振り返ることが上達への近道?
達人のProductive Guide見せてもらうと参考になるかも
今回はProductive Guideで上位にあった機能を紹介します
Frequently used
よく使う機能
Basic code completionFinish lookup by special charactersSyntax aware selectionGo to declarationSmart type completionGo to classComment/Uncomment current lineGo to implementationRename
Quick definition lookupGo to fileReplace By when using lookupShow usagesVariable name completionGo to symbol....
Basic code completionFinish lookup by special charactersSyntax aware selectionGo to declarationSmart type completionGo to classComment/Uncomment current lineGo to implementationRename
Quick definition lookupGo to fileReplace By when using lookupShow usagesVariable name completionGo to symbol....
1.コードナビゲーション2.コード補完3.コーディング支援
よく使っていたのは
コードナビゲーション
Code Navigation
コードナビゲーション
コードナビゲーションGo to
Line
File
Class
Symbol
Show Usages
Type Declaration
Super Method
Implementation
File Structure
ファイル内の指定行にジャンプ(Go to Line)
ファイル名を検索してジャンプ(Go to File)
クラス名を検索してジャンプ(Go to Class)
変数名、メソッド名などを検索してジャンプ(Go to symbol)
Go to ...
使用回数上位は
ほとんどGo toでした
しかしNavigationには
他にもオススメ機能が
変数、メソッド、クラスなどの利用箇所を全て検索する
例)あるクラスのメンバ変数hogeの利用箇所を全て検索する
Show usages
変数の型を検索して、型の定義にジャンプ
例)Stringの変数にカーソルを合わせて発動したら、Stringクラスのコードにジャンプする
Type declaration
サブクラスのメソッドから、スーパークラスのメソッドへジャンプ
Super method
あるクラスのサブクラス、あるインタフェースの実装クラスなどを検索してジャンプ。
実装が複数ある場合、その場でジャンプ先の選択肢が表示される
Implementation
ファイル内のクラスやそのメンバをツリー表示する
巨大なクラスのコードを読む場合などに便利
File Structure
Navigating code in IDEA
操作デモ
Motivation to use IDE
IDEに期待すること?
コードナビゲーションって
重要?
コードを書く速さ?
コードを読む速さ?
プログラマの作業時間の8割は
コードを読むことに費やされている?
参考http://blogs.msdn.com/b/peterhal/archive/2006/01/04/509302.aspxhttp://architects.dzone.com/articles/what-you-dont-spend-most-your
IDEAの対応言語Java
Groovy
XML
Scala
Clojure
Ruby/JRuby
Python
PHP
SQL
HTML/XHTML/CSS
JavaScript
and more
IDEAはコードナビゲーションの機能が充実
対応言語が多い
プログラマの作業時間の8割はコード読解
ということは、生産性は?
IntelliJ IDEA
お試しください!
Closing
まとめ
まとめこれだけは覚えてほしい!オススメ機能
Productive Guide
コードナビゲーション
IntelliJ IDEAは生産性高い?
プログラマの作業時間、IDEA機能と対応言語
Thank you!