IDEA common settings and shortcut keys

The purpose of writing this blog post is to facilitate my own review, so the content of the article is not comprehensive.
Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

  1. Shortcut key
    ctrl+Y: delete line
    ctrl+/ : single-line comment
    ctrl+shift +/ : multi-line comment

    ctrl + D: copy line
    ctrl+shift + up and down arrow keys: exchange line
    ctrl + alt + L: format
    ctrl+shift + F12: maximize and minimize editing window
    hold down the mouse wheel key: column mode editing
    alt + Enter: automatic error correction, can be used to automatically import packages
    alt + insert: quickly insert code to generate code
    ctrl + space: automatic code prompt

    (Because the insert key is inconvenient to use, this needs to be reset)
    ctrl+h: open the inheritance view of the class
    ctrl+ alt+o: clean up the import
    ctrl+F12: view the structure of the class ctrl+F: search ctrl+R
    in this file
    : replace ctrl + shift + T in this file
    : quickly create a unit test unit test
    shift + F6 : rename
    ctrl+shift + = : expand code
    ctrl+shift + - : collapse code
    ctrl+shift + up and down arrow keys: swap lines

  2. Reset shortcut keys
    insert image description here
    Find these two in the setting interface, Generate is quick code generation, and Basic is automatic code prompt.

Guess you like

Origin blog.csdn.net/qq_41544842/article/details/113394002