How to add more shortcuts to android studio toolbar?
Right-click on the open space of the toolbar (your first image) and select Customize Menus and Toolbars...
.
Now open the Main Toolbar
folder, select any item and then click the Add After...
button (on the right).
Find what you want to add from the list of items available (you can also choose an icon) and click OK
.
The new item is added :)
You can also re-arrange the items by selecting it and using the Move Up
and Move Down
buttons.
Click OK
when done.
NOTE:
You can also do this from the settings (as per your second image) but it is faster to do by right-clicking the toolbar.
I'm currently using Android Studio 3.6.1. Maybe you currently have toolbar unchecked, like I had. So first go to View -> Appearance and check Toolbar option.
After that, you'll be able to right click on a toolbar and you'll get option to choose:
Choose option Customize menus and toolbars. You'll get the following dialog:
Choose main toolbar:
Here, under main toolbar, you see all of the actions that are currently available on your screen. Now, choose the place where you want to add your action, and then click on +.
You can now search for the action you want to add. For example, I have searched for Open Dart DevTools action.
After you click on OK, the action will appear in your main toolbar.
That's it. Happy coding.
Not sure what version of Android Studio the accepted answer above covers but it left out an essential step as of Android Studio 3.3.1, Step #1 as noted below.
- Step #1: Confirm your Toolbar is actually visible in Android Studio. Select Menu -> View -> Toolbar to toggle the toolbar's visibility to visible.
- Step #2: Right Click in a blank area of the toolbar to reveal popup menu "Customize Menus and Toolbars". Choose "Customize Menus and Toolbars".
- Step #3: Expand Main Toolbar in popup window.
- Step #4: Choose toolbar item where you desire to add an item after it.
- Step #5: For a separator choose "Add Separator". For a toolbar button choose "Add After".
- Step #6: Assuming you chose "Add After" in Step #5 find the button/action you desire to be added in the popup window provided. Choose that item.
- Step #7: Choose okay to add item to previous popup window. New button/icon/action item should now appear in the current popup window.
- Step #8: Choose okay to finish the toolbar edit desired.
- Step #9: Repeat as necessary/desired from Step #2.