Smart Tag Shortcut - 2017 Community Mac - macos

I'm using the 2017 Community Edition of Visual Studio, and I can't figure out how to toggle the "Smart Tag" feature (helper, auto-fix, suggestion tool).
It normally appears as a tiny square you can hover on, once first hovering over an error. This interaction is really annoying, and there should be a keyboard shortcut for it, but I can't find it.
The keyboard shortcuts that work in other versions of VS for Windows etc. don't work here. I also can't find any type of key binding under the settings for a "smart tag".
Picture Example: The small smart tag in VS 2017 for macOS

What you're looking for is "Quick Fix..."
You can use the shortcut option + return (also shown as ⌥ + ⏎)
You can modify the shortcut in Preferences -> Enviroment -> Key Bindings -> Refactoring -> Quick Fix..

Related

Keyboard shortcuts starting with Alt don't work in VS

Keyboard shortcuts which start with Alt (such as Peek Definition Alt+F12) stopped working on Visual Studio 2015.
When I press Alt key, those underscores appear under menu items (which is default behavior of windows) as shown on image
Other keyboard shortcuts such as F5, and all the ones starting with Ctrl are working properly.
I've found a lot of answers about keyboard shortcut conflicts after installing ReSharper, but I haven't installed it.
Any suggestions?
In my case it was Nvidia's "In-Game Overlay". In case you are running this software, try disabling this in the "Geforce Experience".
The image below shows where to do this:
After long troubleshoting and googling I've combined multiple things and it worked:
Updated the Visual Studio
Resetted keyboard layout with following steps:
2.1. Make sure you have no additional keyboard and displays connected (this could be optional step, but without this the solution was not
working for me)
2.2. From menu open "Tools" and select "Options"
2.3. From left side select "Environment" and click on "Keyboard"
2.4. Change the mapping scheme to "Default"
2.5. Click on "Reset" (You'll be promted something then click on "Yes") and OK
2.6. And now restart the application
Also by the way installed ReSharper and uninstalled (this also plays keyboard shortcuts of Visual Studio) and retried second step
DevExpress Coderush overrides some of the Alt key bindings which prevent Visual Studio using them (ie: Alt Left & Right).
They can be disabled selectively via Extensions -> CodeRush -> Options -> IDE -> Shortcuts -> untick Enabled on right.
I can confirm that it's due to GeForce Experience. Of course, not exactly GeForce Experience's fault since it's meant for gamers. After disabling the In-game overlay under Options (wheel), General, In-game Overlay, alt+F7 worked immediately.

Visual Studio Keyboard Shortcut of quick watch (shift + F9) Not Working

My quick watch (shift + F9) shortcut suddenly is not working.
But its alternate keyboard chord Control + Alt + Q works fine.
And all other shortcut seems working fine. But quick watch is the only one that I currently found.
I have tried other shortcut with Shift or with F9 , no problem.
I am also using Resharper, is that affecting VS Shift F9?
If you have Snag-It installed on your machine, its global shortcuts may override application specific shortcuts in Visual Studio (or other apps).
See #nuri's answer here: Visual Studio 2010 QuickWatch window not visible for instructions and screen-shots to change the Snag-It settings.
In the meantime, just go into the Snag-It preferences, the HotKeys tab, and set the "Video capture start/pause/resume" hot key to something other than [Shift]-[F9]. For myself, I only use "Global capture", so I set everything else to "None".
You can try the following:
In TOOLS --> Options | Keyboard, make sure the right mapping scheme is selected (Visual C# 2005 for me) and click Reset and finally, Ok

Visual Studio 2015: Disable Control+Click Navigation

After upgrading to Visual Studio 2015, holding control while clicking on a symbol navigates to that symbol definition. In prior versions, this would instead select the entire word.
How can I disable the navigation event when CTRL + Click(ing) a symbol, so that it highlights the word?
I do have Resharper (Ultimate 9.2) installed. The configuration option under Environment -> Search & Navigation -> Go to Declaration on Control + Click in the editor is not checked.
All the search engine results make mention of this being a feature of the Productivity Power Tools extensions in previous versions of Visual Studio. I do not have that extension installed.
I found my solution in the "Options - Text Editor - General" settings. This was on VS 2017 thou.
To disable navigation to symbol definitions in VS2015,
this one worked for me.
With Resharper Ultimate 2016.3.1, I could fix the issue by disabling "Rich mouse navigation in the editor". It can be found in Resharper Options window, under Environment > Search & Navigation.
Maybe updating Resharper could solve the issue.
Also, Productivity Power Tools is not installed on my machine.
In vs 2017 this setting is available in Tools -> Options -> Text Editor -> General -> Enable mouse click to perform Go to Definition.
You can uncheck it!
Go to ReSharper Options > Environment > Search & Navigation, then uncheck the following options:
Rich mouse navigation in the editor
Enable 'Smart go to declaration'
I finally solved it following the info I found on this page..
edit
Ensure you are using Visual Studio as your resharper keyboard scheme.
Environment -> Keyboard & Menus
Tools -> Options -> Environment -> Keyboard
To stop the go to declaration, select it and input a new key short cut for it. In this image I have demonstrated that I changed this short cut to ctr num 1 and could not change it to ctr num 3. On testing crt click does not no take me to the declaration.
Find the shortcut you want to remove, in this case Edit.NavigateTo and remove.
An update for Productivity Power Tools + VS2017. Instead of having settings for this feature, a separate plugin gets installed. So after installing PPTs, you'll have a new extension called Ctrl+Click Go To Definition. Not sure why we need that tool considering it's baked into VS, but...
Anyway, Disabling that extension (plus the other things mentioned in other comments for VS and Resharper) fixed my ctrl+click woes.
To switch to the Visual C# keyboard mapping scheme
On the Tools menu, click Options.
Expand Environment, and then click Keyboard.
Select Visual C# 2005 from the Apply the following application
keyboard mapping scheme drop-down list.
or you can do
Keyboard: CTRL + W
also plugin can be used
Keyboard Shortcut Exporter
you can import/export keymapping file

How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?

In every Visual Studio.NET version you can set keyboard shortcuts using menu Tools -> Options -> Environment -> Keyboard and then find the command you want to assign a shortcut to by entering part of it in "Show commands containing".
For one thing, the listbox is ridiculously short and hard to navigate - is there an alternative?
Then, how do I find out the correct command name for a specific action?
Specifically, I'm using ReSharper 5.1 with Visual Studio 2010 and want to have the Alt + Enter shortcut back (it used to be there in older versions by default) that opens the ReSharper context menu when the cursor is over a curly underline ReSharper uses to highlight errors or warnings.
How do I find out the command name for that (except by an educated guess)?
The way I do this is to perform an action while recording a macro (using Tools / Macro / Record temporary macro).
When I have finished with the action, I look at the source code of the macro and it usually helps to find the correct command.
For example, I have just let R# add some magic through Alt-Enter, and the macro recorder has:
DTE.ExecuteCommand("ReSharper_QuickFix")
You can rebind all of the ReSharper shortcuts by using the ReSharper -> Options -> Visual Studio Integration page. Select a keyboard scheme and hit "Apply Scheme".

Is there a keyboard shortcut to view all open documents in Visual Studio 2008

I am trying to learn the keyboard shortcuts in Visual Studio in order to be more productive. So I downloaded a document showing many of the default keybindings in Visual Basic when using the VS 2008 IDE from Microsoft.
When I tried what they say is the keyboard shortcut to view all open documents (CTRL + ALT + DOWN ARROW), I got a completely unexpected result on my XP machine; my entire screen display was flipped upside down!
Was this a prank by someone at Microsoft? I can't imagine what practical value this flipping of the screen would have.
Does anyone know what the correct keyboard shortcut is to view all open documents in VS 2008?
Oh and if you try the above shortcut and it flips your display the way it did mine, do a CTRL + ALT + UP ARROW to switch it back.
This is a conflict between your graphics driver and Visual Studio. Go to your driver settings page (Control panel) and disable the display rotation shortcuts. With this conflict removed, the shortcut will work in Visual Studio.

Resources