intellij idea - gems you can find inside

29
IntelliJ IDEA Gems you can find inside Milan Krystek 12.05.2015

Upload: milan-krystek

Post on 20-Feb-2017

453 views

Category:

Software


2 download

TRANSCRIPT

Page 1: IntelliJ IDEA - Gems you can find inside

IntelliJ IDEA Gems you can find inside

Milan Krystek 12.05.2015

Page 2: IntelliJ IDEA - Gems you can find inside

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 :)

Page 3: IntelliJ IDEA - Gems you can find inside

How to learn about features in any app

Page 4: IntelliJ IDEA - Gems you can find inside

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

Page 5: IntelliJ IDEA - Gems you can find inside

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

Page 6: IntelliJ IDEA - Gems you can find inside

Find that command

• Ctrl + Shift + A– Finds commands, settings– Shows you a keyboard shortcut too

Page 7: IntelliJ IDEA - Gems you can find inside

Crafting the code

Page 8: IntelliJ IDEA - Gems you can find inside

Smart Suggestions

Page 9: IntelliJ IDEA - Gems you can find inside

Templates

Page 10: IntelliJ IDEA - Gems you can find inside

Postfix Notation

Page 11: IntelliJ IDEA - Gems you can find inside

Scratch files

Page 12: IntelliJ IDEA - Gems you can find inside

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

Page 13: IntelliJ IDEA - Gems you can find inside

Refactoring

Page 14: IntelliJ IDEA - Gems you can find inside

All Sorts Of Refactorings

Page 15: IntelliJ IDEA - Gems you can find inside

Java 8 Inspections

Page 16: IntelliJ IDEA - Gems you can find inside

Multiple Selections

Page 17: IntelliJ IDEA - Gems you can find inside

Navigating in the code

Page 18: IntelliJ IDEA - Gems you can find inside

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

Page 19: IntelliJ IDEA - Gems you can find inside

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

Page 20: IntelliJ IDEA - Gems you can find inside

Code Analysis

• Find Usage of the Members via Alt+F7

• Show Usages via Ctrl+Alt+F7

Page 21: IntelliJ IDEA - Gems you can find inside

Running & Debugging

Page 22: IntelliJ IDEA - Gems you can find inside

Inline Debugger

Page 23: IntelliJ IDEA - Gems you can find inside

Chronon Debugger

Page 24: IntelliJ IDEA - Gems you can find inside

Built-In Decompiler for Java

Page 25: IntelliJ IDEA - Gems you can find inside

Tools & Misc.

Page 26: IntelliJ IDEA - Gems you can find inside

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..

Page 27: IntelliJ IDEA - Gems you can find inside

Database Tools

Page 28: IntelliJ IDEA - Gems you can find inside

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$

Page 29: IntelliJ IDEA - Gems you can find inside

Q&A

?