Visual Studio enable "Ctrl + Click" - visual-studio-2012

How do you enable the CTRL + Click option. For example if you make a new object from a class and you CTRL + Click on the class name you go to that class, or the same with a method?

This setting is controlled through Visual Studio - Go To Definition:
Tools->Options
Text Editor category
General subcategory
Check (or uncheck) Enable mouse click to perform Go to Definition

Just click on the class name or whatever and press F12.

Related

How do I set the function to automatically go to that code when I click the widget from flutter to the inspector?

How do I set the function to automatically go to that code when I click the widget from flutter to the inspector?
develop environment is Android Studio.
Not sure what you are asking, perhaps you want to hold down control or command, depending on your OS, and left click.
Usually that takes you to the code referring to that function or class.
If you are using VSCode editor, you can do it with CTRL (command in macOS) + left click. When you hover your mouse to Widget's name, for example, it will highlight the text and then you can click it. It will bring you to the Widget class

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

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

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.

Resharper change default go to type for ctrl

currently when I hit ctrl and press mouse btn on type I got to type for example to interace , how can I change it to go to implementation ? I tried by tools, keyboard but can't change it key to ctrl + Left click.
You can't rebind the action that happens on ctrl+click. However, pressing alt+ctrl+click, you'll go to implementation. And ctrl+shift+click will open the result in the Peek Definition window.

What is the shortcut for the little auto suggest blue bar in Visual Studio 2012

In Visual Studio, when you type in a Class name or property that Intellisense doesnt recognise a little blue bar show up underneath the first letter of the word with options like suggestion the namespace to import and refactor etc.
Does anyone know the shortcut to open that window with having to mouse over it? I can't for the life of me find it on Google, probably because I can't find out what the function is called.
I use the Ctrl + . (period) shortcut to open that menu when the blue bar is showing.
Press Alt + Shift + F10 to bring up the context menu.
The commands in this menu are also available in Edit + IntelliSense + Generate. Only the Generate Method has a predefined shortcut key: Ctrl+K, M. You could use Tools + Options, Customize, Keyboard to assign additional ones.

Resources