Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.08 KB

ij-win-lin-go-to-superclass.md

File metadata and controls

25 lines (16 loc) · 1.08 KB

Top => IntelliJ on Windows/Linux

JetBrains IntelliJ IDEA on Windows/Linux

Kata for practicing keyboard shortcuts for common editing operations

Kata: Go to superclass/supermethod, view method hierarchy, view call hierarchy

Key sequences to practice

  • (Ctrl + U) - go to the superclass/supermethod of the thing where the caret is positioned
  • (Ctrl + Shift + Backspace) - go to the last edit location
  • (Ctrl + Shift + H) - view method hierarchy
  • (Ctrl + Alt + H) - view call hierarchy

Walkthrough of steps with explanations

  1. Open the Java source file, MomSender.java.
  2. Position the caret in the send() method.
  3. Press (Ctrl + U) to go to the parent method in class Sender.java.
  4. Press (Ctrl + Shift + Backspace) to go back to the point where you were in MomSender.java
  5. Position the caret on any reference. Press (Ctrl + Shift + H) to view the method hierarchy above the item where the caret is positioned.
  6. Position the caret on any reference. Press (Ctrl + Alt + H) to view call hierarchy above the item where the caret is positioned.