Skip to content

Latest commit

 

History

History
86 lines (74 loc) · 2.85 KB

intelliJ.md

File metadata and controls

86 lines (74 loc) · 2.85 KB

Panes

  • Alt + 1 : Open project's pane
  • Alt + 4 : Open run pane
  • Alt + 5 : Open debug pane
  • Shift + Esc (While a pane is opened) : To close the panes
  • Ctrl + Shift + F12 : To hide all the panes
    • or use the Quick Search Double Shift and hide all windows

Refactor

  • Shift + F6 : Rename at all the places, real time
  • If you want to replace the current method with the suggestion (don't press enter), press tab.
  • Extract Method : Search everywhere + type extract Method (or Alt + Ctrl + M)
  • Ctrl + D : Duplicate the line
  • Alt + shift + up/down to move a selection/line up and down
  • Ctrl + o : Open override window
  • Ctrl + Alt + L = Format

Navigate

  • Double Tap Shift : Search everywhere

    • You can search by camelcase, anytime you have a search window.
    • You can use wildcard search *.sql
  • Ctrl + B : Go inside the defination

  • Ctrl + Shift + B : Go inside the implementation

  • Ctrl + Alt + -> or <- Go Back to the place before, or after

  • Use F2 or shift + F2: To cycle through the errors/ warnings

  • Ctrl + F12 : Show all the methods in the class

    • Press F12 again to show all the methods in the super class.
  • Ctrl + Left/Right = Move one Word at a time

  • Ctrl + Backspace = Delete one Word at a time

  • Almost everywhere where there is a list, you can start typing.

  • Alt + J = Select Next occurrence (while cloning the cursor(emmet like))

Help:

  • Ctrl+ P : Show parameters and overloaded parameters for a function

Code Completion

  • Ctrl + Space : Basic Completion
  • Ctrl + Shift + Space : Smart Completion
  • Ctrl + Shift + Enter : To complete the current statement
  • Alt+Enter : To show possible solutions.

Alias / Live templates

- **Type "iter" to create a foreach loop**
- "sout" to System.out.println
- "psvm" to expand public static void main
- "ifn" : if null
- "inn" : if not null

Scoped Selection

  • Ctrl + W : To select the word under the cursor.
    • Press W again while holding to increase the scope of selection
    • pressing Shift+W(holding the ctrl) to decrease the scope of selection

Debugger

Basics

  • Step over
  • Step into
  • Force Step into (JAVA API code)
  • Step out
  • Evalutate Expression

  • Drop Frame

  • Show Execution Point
  • Add Conditional Breakpoints
  • Add Watch
    • Add to watches (In Source code)
  • Modify Value of variables to change the code execution.
  • Mute breakpoints
  • Resume
  • Run to cursor.
  • Jump to Source
  • Clicking on stacks to show varibles per scope.

Advanced

  • Setting breakpoint on a single lambda

  • Stream debugger (stream chain)

  • Selecting and disabling breakpoints
  • Grouping breakpoints.
  • Adding breakpoints for interface methods.
  • Field breakpoint (No need to add breakpoint in getters and setters).

  • Exception Breakpoint

    • Pause the application before the breakpoint.
  • Memory View