Skip to content

alexandermaas/jetbrains-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Become a pro in your IntellJ IDE

Introduction

A tool is just a tool. A craftsman is able to perform magic even with the simplest tools. Imagine what a craftsman can do with a tool as powerful as your IDE?

Generic project search

Shortcut Action
2 x ⬆ Find everywhere
⌘+O Find by class-->find a specific class in your code base
⌘+⬆+O Find by file name
⌘+⌥+O Find by symbol-->find indexed symbol in your code base
⌘+⬆+A Find all actions
⌘+⬆+F Find in project/find in path if you select a folder

Generic project navigation

Shortcut Action
⌘+E Jump to recent file (You can type instead of selecting files)
⌘+⬆+E Go to recent locations
⌘+Up Bring up a floating navigation bar
⌘+[ Navigate back
⌘+] Navigate forward
^ + Tab Move to last file. Hold to open switcher which allows you to open last opened files or open tool
⌘+B Go to declaration or usages
⌘+⬆+T Navigate to test

In file Navigation

Shortcut Action
^+Up Go to previous method
^+Down Go to next method
^+M Move carret to matching brace
F2 Go to next compiler error

Which views to have in your editor

Preferences are personal. I turn of all views as much as possible. The JetBrains IDE search tools are more powerful what any view can provide.

NOTE: Below you can find short-cuts. The ones which are bold-faced should are essentials. Make sure you know them by heart!

Open/closing views

Shortcut Action
⬆+Esc Hide view
⌥+F12 Open terminal
⌘+4 Open run window
^ +⌥+R Temporarily bring up build menu Otherwise you can use ‘run anything’
⌘+K Commit window

Useful while editing

Shortcut Action
⬆+Enter Smart new line. Add new line after this line
⌘+⌥+Enter Smart new line. Add new line before this line
⌥+Up Expand selection to next code block
⌥+Down Contract selection to previous code block
⬆+⌥+Up/Down Move line up/down
⬆+⌘+Up/Down Move code block up/down
F1 Get non intrusive information about a function
⌘+P Gives you the arguments within a function
⌥+Enter Autofix

Refactoring

Shortcut Action
^ + T Refactor thisBring up a menu to refactor this piece of code
⌘+⌥+L Reformat code
^ +⌥+O Optimize Imports
F6 Move to file
⬆+F6 Refactor->Rename
⌘+⌥+V Introduce variable
⌘+⌥+C Introduce variable
⌘+⌥+F Introduce field
⌘+⌥+P Introduce parameter
⌘+⌥+M Introduce method

Postfix notation

Examples:

  • 2020.const
  • YEAR.if
  • YEAR.log
  • Look for postfix options in menu

Live templates

Shortcut Action
⌘+J Open dropdown for smart templates

Using local history

Your IDE keeps track of code changes besides the version control system you use. It saved my life a couple of times, when I accidently removed a file just before committing it.

  • You can use this in a file
  • You can also use it in the file navigator

Scratch files

Shortcut Action
^+⬆+R Run current file

Single/Multi select

Shortcut Action
⬆+arrows Create a selection of or extend current selection
⬆+⌥+left/right Create a selection of or extend current selection by words at a time
⬆+⌘+left/right Create a selection of or extend current selection until begin/end of line
⬆+⌥+click Multi-select
⌘+F followed by ⌥+Enter Search a string/regex and multiselect all instances in code
⌘+⬆+G Split up selection at end of line

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published