Android Studio: Top action bar is hidden in android studio - android-studio

The top action bar in android studio (android studio itself, where i select file, build.. etc) is hidden, how can i show it again ?
I tried to edit everything in settings but nothing worked.

I'm using Android Studio 4.1. Following steps fixed it for me :
Press CTRL + ALT + S. This will open settings window.
Go to Appearance and Behavior > Menus and Toolbars
Click on restore button (looks like a undo button)
Choose Restore Main menu
Then click apply button.

Related

How do I get back to the default Android Studio toolbar?

I recently updated my laptop to Ubuntu 18.04 and lost my Android Studio 3.5.1 settings including the toolbar, which now looks like this:
How do I get back to the default toolbar, which had a bunch of icons to the right of app drop-down menu (Select device drop-down menu, run button, Apply changes and restart, etc.)? Modifying the toolbar with right-click "Customize Menus and Toolbars..." doesn't work the way it did in earlier versions; there's no "Add after... button.
In Android Studio 3.5.3, after you right click in an empty area on the toolbar and select "Customize Menus and Toolbars...", you'll see the option to restore defaults at the top of the pop-up window.

How to disable the file toolbar in android studio

Just a quick question. How do I remove/disable this tool bar in android studio ? I cant seem to find a setting to disable it.
Open Android Studio
Goto: View -> Click on Navigation Bar option (Keep it unchecked)
Now, Your entire bar will be hidden.
Again, Goto: View -> Click on Navigation Bar option
Now, Click on Toolbar option (Keep it checked)
Your window should look like this:

How to get the toolbar back in Android Studio?

By mistake I removed the toolbar in Android Studio IDE. How can I get it back.
Note: I am not talking about toolbar in android app
If your Main Menu toolbar is hidden you can get it back by pressing Ctrl + Shift + N (or double tap Shift on Android Studio 4.x) and search for the View | Appearance: Main Menu Action. Toggle to ON to enable the menu again:
Select View->
Click on Toolbars
The simple way:
If you have accidentally hidden your Main menubar:
Double tap on Shift on your keyboard.
On the popped up window click on Actions and type mainmenu.
A toggle button labelled " view appearence : Main Menu - OFF" will appear.
Click on toogle OFF to make it ON.
Now, the Main Menu is shown. very simple!
For the version of 3.6.1,
It is actually in View > Appearance > Tool Window Bars.
Make sure it is ticked.
It is frustrating when you accidentally hide toolbars & even when the main menubar is also hidden, it is difficult to get back because the View tab is also hidden after the main menubar.
So what to do?
Press Alt+CTRL+S - this will open all settings.
In settings, that go to keymaps.
Find Main Menu-> View-> Toggle the main menu.
Select it and assign any shortcut you like after clicking the little pencil icon on top.
Close settings and press your shortcuts, - main menu opens.
You can similarity assign to Main Menu-> View-> Toolbar and show toolbar again on Android studio IDE. Alternatively, after the main menu opened, click VIEW-> Toolbar tab.
This's the way easy and simple:
Click on Search Everywhere icon.
Type "Main Menu" (or anything you want to find: status bar, navigation bar, tool bar ...).
Click on Status Button to enable ON mode for it.
Done!!!
Preview:
If you hide your Main menubar accidentally, follow these steps to show
it again
Pic 1:
Pic 2:
In Pic 1: The Main menubar is shown but in Pic 2: the Main menubar is gone.
Step 1: To solve this press Ctrl + Alt + S from your keyboard, the Settings menu will appear. From the left panel select Keymap and from the right panel select Main menu
Step 2: Now Right-click on the Main menu, you will find three options Add Keyboard Shortcut, Add Mouse Shortcut and Add Abbreviation. Select Add Keyboard Shortcut
Keyboard Shortcut dialog box will appear. Select any key (In my case its M)
Now press the OK button, and once again OK to close the Settings dialog box.
Step 3: Now press the shortcut key (In my case its M) and you will see a popup Main menu
Step 4: Click on View -> Appearance -> Main menu
Finally, you will see your Main menu again :)
Step 5:
Remove the shortcut key
To remove the Shortcut Key, press (Ctrl + Alt + S) key -> Keymap -> Main menu
Right-click on the Main menu, Select Remove -> Hit Apply, then OK button
If you're on Linux and the Main menu disappeared after updating AS, and you can't find it in the View | Appearance as suggested in the other answers, then it's probably because of an experimental Linux native menu flag got enabled.
Double tap Shift (or do Ctrl + Shift + A), to get the window to type in what action are you looking for, and type Experimental features. Then find linux.native.menu and uncheck it. Then restart AS.
See here for more info https://www.jetbrains.com/help/idea/linux-native-menu.html#disable-linux-native-menu
Depending on your version of Android Studio, the option was moved:
Older versions:
View > Toolbars
Newer versions:
View > Appearence > Toolbars
I have the version 3.6.1 and for me it is in the second case now.
It is actually in View > Appearance > Tool Window Bars.
Make sure it is ticked.
If you have hidden your Main menu bar:
Follow the below steps:
Click on Main Menu -> View
on View -> Click on Tool Windows
In Tool Windows select the project or if you required any other menu you can add
Now, the Main Menu is shown. very simple!
You can similarity assign to Main Menu-> View-> Toolbar and show toolbar again on Android studio IDE. Alternatively, after the main menu opened, click VIEW-> Toolbar tab. Save this answer.

Adding a toolbar button for a keyboard shortcut in Visual Studio 2012

I want to add a toolbar button to the toolbar which takes me to the TFS Builds view.
It is only available as a shortcut, TeamFoundationContextMenus.Commands.GoToBuilds, with the keyboard shortcut Ctrl+0, B so I cannot add it as I normally would.
The other views, such as Pending Changes are available as buttons, but not Builds.
I found this workaround: Adding a Visual Studio toolbar button for a command that is only available as a keyboard shortcut but it is for VS2010 and uses macros which were taken out of VS2012.
Does anyone know if it is possible to add a keyboard shortcut as a toolbar button?

Adding ReSharper options to context menu in Visual Studio

In Visual Studio 2005, my coworker can right click a tab and he has an option "Find in Solution Explorer". I know this is from ReSharper and I'm running ReSharper 5.1 - how do I enable this extra context menu? I also know about the Shift+Alt+L shortcut for the same command but want to add the context menu.
This is what I see when I right click on a tab. The picture below is when I right clicked on a .cs file.
EDIT: Typo in the title.
Tools > Customize... > Toolbars tab > tick Context Menus. Find Other Context Menus > Easy MDI Document Window. Commands tab > ReSharper > ReSharper_LocateInSolutionExplorerAction. Drag it into the menu. Click Close.

Resources