I am used to using QtCreator. I always feel that AndroidStudio is not very convenient. Like VisualStudio, many commonly used functions require a series of shortcut keys to achieve. It feels like they are developed for people who don’t need a mouse. Those shortcut keys are long. You can't believe it, so. . . .
- Open Preferences (or File -> Settings on Windows)
- Go to Appearance and Behavior -> Menu and Toolbar
- Unzip editor pop-up menu
- Click the item in this list to add the "reformat code" command
- Click the "Add" button
- In the "Select Operation" dialog box, click "All Operations -> Main Menu -> Code -> Reformatting Code", and then click "OK".
- Click "OK" to cancel the "Preferences" dialog box, and you will see the "Reformat" code in the context menu of the "Code Editor" window.