How to add "code alignment" to the right-click menu in AndroidStudio3.5?

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. . . .

  1. Open Preferences (or File -> Settings on Windows)
  2. Go to Appearance and Behavior -> Menu and Toolbar
  3. Unzip editor pop-up menu
  4. Click the item in this list to add the "reformat code" command
  5. Click the "Add" button
  6. In the "Select Operation" dialog box, click "All Operations -> Main Menu -> Code -> Reformatting Code", and then click "OK".
  7. Click "OK" to cancel the "Preferences" dialog box, and you will see the "Reformat" code in the context menu of the "Code Editor" window.

 

Guess you like

Origin blog.csdn.net/poolooloo/article/details/105839037