enriquein
enriquein

Reputation: 1038

Disable HTML element tooltips in Visual Studio

I was wondering if anyone has had any luck disabling the HTML element tooltips in Visual Studio 2015. I find them to be a real annoyance, especially when dragging/ctrl+dragging text around (they get in the way most the time). Here's a screenshot the feature in action (updated):

enter image description here

I Googled and was only able to find the post where the feature was announced, but no mentions of how to disable it. I checked my Visual Studio preferences and have "Auto list members" and "Parameter information" disabled for the HTML text editor.

Any ideas or suggestions?

Update (10/16/2015): I think this issue may be related to the Web Essentials package. I disabled the package and was able to make the tooltip show up, however, I don't currently have a computer with a default Visual Studio 2015 install to test my theory on. I updated the screenshot to reflect the actual tooltip I'm getting (the original one was the screenshot included in the linked blog post).

Upvotes: 5

Views: 949

Answers (2)

N00b-a-Tron 9000
N00b-a-Tron 9000

Reputation: 25

This was annoying the Hell out of me as well & I found that ElektroStudios' solution wasn't suitable in my case. I'm fairly sure that they are VS-native (definitely not Web-Essentials or ReSharper).

For VS2015 at least, the offending tool-tips are located within the file:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\Schemas\1033\HTML\html.loc

Deleting the contents of this file has "disabled" the tool-tips for me, although I can't say whether this will be a permanent fix.

Upvotes: 1

ElektroStudios
ElektroStudios

Reputation: 20494

Try this:

Go to: Tools > Options... > Text Editor > HTML > General

In the 'Statement completion' section you will see an 'Auto list members' checkbox, uncheck it.

enter image description here


However, I'm not sure if the feature above reffers to an in-design html editing or will only affect in specific html development environment (editing an html file for example), so I'll give an additional solution:

Go to: Tools > Options... > Environment > Keayboard

Here, find the command Edit.ToggleCompletionMode and assign the keyboard shortcut that you desire.

enter image description here

Then just use it when you wish to toggle the auto completion of members (including html members I supose).

Update

Sorry If I confussed what you want, because with the absence of auto completion it will remove existance of tooltips but I don't know if you need auto completion suggestions or not.

Anyways, for tooltips you could try doing the same procedure I explained in the images above but with the "Parameter Information" checkbox and/or the corresponding keyboard shortcut, Edit.ParameterInfo. Because seems that html element tooltips are treated as parameter info.

Upvotes: 1

Related Questions