Customize order of "Add new" elements (ALT + Ins) - android-studio

Clicking ALT + Ins shows a window where we can select what we want to add.
I was wondering, is there a way to change the order of these elements?
In particular, since almost all new classes are in Kotlin, I'd like to have Kotlin as first option, so I won't have to click the down arrow to select it.

It works as in IntelliJ IDEA:
Right-click the main toolbar (that's where you can find Run/Debug buttons etc)
Choose "Customize Menus and Toolbars"
Go into "Navigation Bar" -> "New" (Other views might be desired, such as Projects)
Change ordering as you prefer
Restart might be needed

Related

What is the place where we write code and the right menu called in Brackets?

I use brackets but I don't know the names of the place where you write code
and the right bar that contains some buttons (e.g Live Preview and Extension Manager) menus.
The red thing you marked is called editor. The left menu and right panel are called toolbars or sidebars.
Honestly you don't even need to know these menu names (maybe except the editor).

How can I change project view on eclipse to hierarchical only using Linux terminal command?

How can I change project view on eclipse from flat to hierarchical only using Linux terminal command without right click on the menu?
Although there is no command line option for this, it is possible to switch the presention between flat and hierarchical using only the keyboard, if you are already in the Project Explorer view.
Press Ctrl+F10 to display the view menu. Use the arrow keys to highlight the menu item you want (in this case, the Presentation menu item is the first, so just one press on the down arrow), then use the right arrow to show the sub-menu for that item. From there, you can either use the hot key (underlined in the submenu, so "f" for "Flat, "h" for "Hierarchical) or use the up and down arrow keys, then hit Enter when on the item you want.

How can I add an icon to a toolbar item in VisualStudio 2012?

I'm using VisualStudio 2012. There is the toolbar with a lot of icons. I can adapt the toolbar nearly fully to my wishes.
But, there are certain commands that have not got an icon associated.
When I add one of these to the toolbar, there is not shown an icon, but the associated text. Which may be quite long. In my case, I want to have "Rebuild Solution" on the toolbar. This does not have an icon. And I'm using the german version of VS, where the text is "Projektmappe neu erstellen". Very long and quite unpleasing to see this much amount of space on the toolbar used by one command.
I'd like to have an icon here instead of this looong text.
If it is impossible to show an icon, I'd be content with a possibility to rename the thing in the toolbar, e.g. to "X", which would use much less space on the toolbar, too.
You can set "X" name for a toolbar item in VS toolbar options with the Modify Selection button:

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.

How to remove a top level menu in VS2012?

I'd like to work in a minimalist manner. So I am trying to remove some of the top level menus that I do not use.
I don't see anything obvious in the Customize window. Am I missing something simple?
You're very close. Go back to Customize (right-click in the menu or toolbar areas), then choose the "Commands" tab instead of the default "Toolbars".
With the "Menu Bar" option selected, you can delete, move, or create high-level menu items, or dive into each menu and customize items. If you make a mistake, click Reset All.
For minimalist coding, I'm also a fan of Full Screen mode (VIEW -> Full Screen or Shift+Alt+Enter).

Resources