IDEA shortcuts to solve the problem

idea formatting code invalid shortcuts solution

  1. If you are using keyboard shortcuts for Eclipse -> Ctrl + shift + F, probably because of Sogou input method conflict shortcuts, you can go to a shortcuts conflict will set Sogou input method (all models should be switched ) off, and then use the shortcut keys on the line.

  2. If the idea is to use the built-in keyboard shortcuts -> Ctrl + Alt + L, it may be the NetEase cloud music shortcut keys conflict, open Netease cloud music, the corresponding global shortcuts can be closed and re-format code should be on it, if you do not close the shortcut key Netease cloud music can choose to change the idea of ​​shortcuts.

  3. The idea to change the shortcut keys, click on the file idea above, select Settings, then in the pop-up screen, select Keymap, enter Reformat page in the search box to find Reformat Code under the Code, the right shortcut key is removed, then replaced you can use what you want, pay attention, new for shortcuts and other shortcuts do not conflict with other software, and if the conflict to find the appropriate software to shortcut keys can be closed.
    Workaround: File -> Settings -> Keymap -> Reformat Code -> the Remove original shortcuts -> the Add Keyboard Shortcut -> Enter new shortcut key you want to use -> Click to apply - -> OK to apply the changes to take effect shortcut keys, if they are directly close the popup window, shortcuts will not take effect.

Shortcuts invalid under normal circumstances because the shortcut key conflicts with other software, and generally is an input method, music, QQ, browser, etc., to find the corresponding shortcut key to turn it off on the line, if other software corresponding shortcut key usually no use, you can select them all off, you can also choose to modify the shortcut key idea.

idea in the HTML code indentation problem

When IntelliJ Idea in HTML format, default under the <head> <body> and <body> tag and will not be indented.
Workaround: File -> Settings -> Editor -> code style -> HTML -> other -> Do not indent children of
deleted <html> <head> <body > on these items can be.

Guess you like

Origin www.cnblogs.com/gujun1998/p/11297816.html