mac idea common shortcut keys

mac idea common shortcut keys 

  1. Code generation:
    • Command + N: Generate setter, getter and other codes in the code editing interface.
    • When the cursor is in the project structure on the left, use Command + N to create new classes, packages, etc.
  2. Delete and copy:
    • Command + Delete: Delete the current line.
    • Command + D: Copy the current line.
  3. Refactoring:
    • Command + Option + M: Extract the currently selected code block into a method.
    • Option + Command + L: Format code.
  4. Code navigation:
    • Command + E: View recently viewed files.
    • Option + Command + left/right click: Quickly jump between codes and return to the location where you last viewed the code.
    • Double Shift: Find classes quickly.
  5. Code search and replace:
    • Command + F12: View the method list of the current class.
    • Command + R: Find and replace.
    • Command + Shift + R: Search globally for specific keywords.
  6. Other useful shortcut keys:
    • Shift + Option + ⬇️: Move the current code down one line (the same goes for moving up).
    • Shift + Ctrl + R: Compile and execute the code.
    • Command + Option + U: View the inheritance relationship view in the current class.
    • Option + Enter: Introduce missing classes.
    • Control + Option + O: Remove unused imported classes.
    • Command + O: Find and open the classes in the introduced JAR package.

These are just some of the commonly used shortcut keys for IntelliJ IDEA on Mac. You can further explore and use other shortcut keys based on your needs and habits. Proficient use of these shortcut keys will improve your programming efficiency and better utilize the functions of IntelliJ IDEA.

Guess you like

Origin blog.csdn.net/qq_40963664/article/details/131717984
Recommended