idea default formatting shortcuts are: Ctrl + Alt + L, sometimes conflict other software shortcuts lead to failure.
Set as follows:
1.File --> Settings...
2. Keymap -> Code
3.Code ->Reformat Code
4. Right Reformat Code pop Add Keyboard Shortcut
5. then modify your own familiar keyboard shortcuts on the line
idea default formatting shortcuts are: Ctrl + Alt + L, sometimes conflict other software shortcuts lead to failure.
Set as follows:
1.File --> Settings...
2. Keymap -> Code
3.Code ->Reformat Code
4. Right Reformat Code pop Add Keyboard Shortcut
5. then modify your own familiar keyboard shortcuts on the line