IntelliJ IDEA Gems you can find inside
Milan Krystek 12.05.2015
Introduction
• This is an opinionated very short list of features that I find useful or interesting
• Some of them were introduced recently hence I believe there is some chance that you don’t know all the stuff yet…
• I was using Eclipse for many years and started to use IntelliJ IDEA two years ago… I’ve never really looked back :)
How to learn about features in any app
How to learn about useful features?
• Find a list/cheatsheet with most important shortcuts– Keymap for Windows or go to the main menu and
choose Help | Default Keymap Reference– Keyboard Shortcuts You Cannot Miss
• Visit the product main page and features page
• Use Tip of the Day
Even more for self learners
• Quick Start Guide
• Productivity Tips
• What’s New
• Key Promoter Plugin– Shows to user how easy he can make same action using
only keyboard (menus and toolbar button mouse clicks initiate shortcut display)
• Video Tutorials
• JetBrains TV
• Help > Productivity Guide
Find that command
• Ctrl + Shift + A– Finds commands, settings– Shows you a keyboard shortcut too
Crafting the code
Smart Suggestions
Templates
Postfix Notation
Scratch files
Distraction Free Mode
• No toolbars; no tool windows; no editor tabs; the code is center-aligned
• To turn it on, click View → Enter Distraction Free Mode.
• Similar to Presentation Mode– But better for coding
• Available in 14.1
Refactoring
All Sorts Of Refactorings
Java 8 Inspections
Multiple Selections
Navigating in the code
Open File• Open Class via Ctrl+N
• Open File via Ctrl+Shift+N• Open Symbol via Ctrl+Alt+Shift+N• Shift, Shift – Search everything
– files, classes, symbols• Recently Opened Files via Ctrl+E• Recently Changed Files via Ctrl+Shift+E
Navigate
• to line number via Ctrl+G• to Declaration via Ctrl+B• to super method via Ctrl+U• to implementation via Ctrl+Alt+B• to last edit location via Ctrl+Shift+Backspace• to the next error or warning via F2• to a related unit test via via Ctrl+Shift+T
Code Analysis
• Find Usage of the Members via Alt+F7
• Show Usages via Ctrl+Alt+F7
Running & Debugging
Inline Debugger
Chronon Debugger
Built-In Decompiler for Java
Tools & Misc.
Terminal / SSH Console
• Terminal– Press Alt+F12 to view terminal window– You can change from cmd to cygwin/bash
or Git Bash
• SSH Console– Tools > Start SSH session..
Database Tools
External Tools
• Go to Settings > External Tools, add a new tool• Open File in GVim (if IdeaVim is not enough)
Program: c:\Program Files (x86)\Vim\vim71\gvim.exeParameters: "+call cursor($LineNumber$,$ColumnNumber$)" "$FilePath$"Working directory: $FileDir$
• Open File in TotalCommander Program: c:\Program Files (x86)\totalcmd\TOTALCMD.EXEParameters: /T $FilePath$Working directory: $FileDir$
Q&A
?