Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
IntelliJ IDEA - Gems you can find inside
1.
2. 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 :)
4. 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
5. 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
6. Find that command
• Ctrl + Shift + A
– Finds commands, settings
– Shows you a keyboard shortcut too
12. 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
18. 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
19. 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
20. Code Analysis
• Find Usage of the Members via Alt+F7
• Show Usages via Ctrl+Alt+F7
28. 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)Vimvim71gvim.exe
Parameters: "+call cursor($LineNumber$,$ColumnNumber$)" "$FilePath$"
Working directory: $FileDir$
• Open File in TotalCommander
Program: c:Program Files (x86)totalcmdTOTALCMD.EXE
Parameters: /T $FilePath$
Working directory: $FileDir$
ANIMATION
Smart type completion after new – Ctrl+Shift+Space
Syntax aware selection - Ctrl+W (select word) in the editor selects a word at the caret and then selects expanding areas of the source code. For example, it may select a method name, then the expression that calls this method, then the whole statement, then the containing block, etc.
ANIMATION
ANIMATION
ANIMATION
IntelliJ offers additional assistance, e.g. replacement of anonymous classes (or lambda expressions) with method references (and vice versa) and replacement of for loops with the new Stream API.
http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-rc2-ships-nearly-final-java-8-support/
ANIMATION
Selection available from 14.1 - http://blog.jetbrains.com/idea/2015/02/multiple-selections-in-editor-using-mouse/
In previous versions – multiple cursors:
As of IntelliJ IDEA 13.1, if you need to edit a document in the same way in several places, you can save efforts by using multiple selections feature. All you need to do is create a caret at each location using Alt+Shift+Mouse Click and make your changes – they will be applied at all locations simultaneously.
Go to declaration - To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and press Ctrl+B. You may also click the mouse on usages with the Control key pressed to jump to declarations.
I suggest to assign new shortcut for Show Usages – e.g. Alt+D
Ever wanted to use Vim editing features while inside IntelliJ IDEA? Here is how to do it… You can even jump to the very same line you are on in IntelliJ.
/T for TotalCommander is used to open new tab