Hide namespace in Quick Info from Visual Studio - visual-studio

Is there a way to hide the clumsy and verbose namespace expression from the Quick Info of classes in VS?
I don't want this:
I want this:
Is there a way to make the class names displayed a bit cleaner like this? It is plain unreadable for the moment. I am thinking of some plugins like ReSharper, CodeRush, JustCode etc.

Further information requested
Could you please confirm which version (and any updates) of Visual Studio you are using? I do see Visual Sudio 2013 as a tag in your question.
Also, is it possible to provide a screenshot of the code without the Quick Info displayed, but, highlight the exact location in your code that you were trying to display Quick Info for?
Initial Answer
As mentioned elsewhere, Resharper can be used to enhance intellisense. i.e. one can choose whether or not to use the default Visual Studio, or Resharper, intellisense provider. But, while Resharper enhances syntax completion and display of parameters, this does not affect Quick Info, in the example given in the question. Quick Info is a tooltip, that by default, is displayed automatically when mousing over a symbol or variable.
In Visual Studio 2010, it was possible to write an extension to override intellisense, to display your own custom tooltip.
IntellisensePresenter
In Visual Studio 2013, there is no built in option to allow customisation.
Visual Studio Ultimate 2013, with Update 4, without Resharper:
Displays the following Quick Info for a Generic Dictionary:
In Visual Studio 2015 (currently Release Candidate), the intellisense tooltip for Quick Info is altered, with increased readability:
Expansion of Answer
Revisiting the example given in the question, and using a simple line of code as a test with a Dictionary containing another Dictionary:
Dictionary<string, Dictionary<string, int>> dict;
In Visual Studio 2013 Ultimate, Update 4, with or without Resharper latest, the following is displayed:
In Visual Studio 2015 RC, with or without Resharper latest, the following is displayed:
Note that Visual Studio 2015 has changed the way that Quick Info is displayed, and is close to the desired outcome. In this instance, ReSharper, although an excellent tool, does not affect Quick Info.
Updates following comments
Visual Studio 2015 RC Quick Info behaviour
To validate that custom types exhibit the same behaviour as described above in Visual Studio 2015 RC, a simple class is created, in a new namespace:
namespace StackAnswer
{
class MyClass
{
public int MyProperty
{
get; set;
}
}
}
Referencing the type using its 'fully qualified' name (i.e without a using statement):
Dictionary<string, Dictionary<string, StackAnswer.MyClass>> dict;
Displays the following:
Adding a using statement:
using StackAnswer;
And altering the reference to the type to not be 'fully qualified':
Dictionary<string, Dictionary<string, MyClass>> dict;
Indicates that Visual Studio 2015 RC displays the name according to the reference declaration:
This is possibly behaviour allowed by use of the Rosyln compiler.
Resharper's "Quick Documentation"
If using Resharper's "Quick Documentation" feature that is opened via a key combination (which is not Visual Studio Quick Info that is displayed on mouse over, as mentioned in the question), the namespaces are indeed shortened. Two screenshots below taken in Visual Studio 2013:
Additional note: background information regarding Quick Info
Visual Assist, an extension for Visual Studio, does possess the ability to enhance, and potentially replace the Quick Info tooltip - if built-in Quick Info is turned off.
Quick Info in Visual Assist
However, currently, in Visual Studio (up to and including 2015 RC), the ability to turn off the built in Quick Info is only available for the C/C++ language; therefore it is unlikely that any tool will presently be able to achieve the exact desired behaviour as mentioned in the original question, which is related to the C# language.
(If using C/C++ this can be found via Tools > Options > Text Editor > C/C++ > Advanced >Auto Quick Info.)

I really recommend ReSharper for that. You can adjust the Parameter Info and Quick Info using the Parameter Info and Quick Documentation features respectively. Both by default hides namespaces and offer more fine grained control over what to display.
On the website you can download a 30 day demo.

Related

Hide Properties for Ctrl+Comma (Navigate to) in Visual Studio?

I'm a big fan of the Navigate to window (Ctrl + Comma) to navigate to classes and files.
Problem for me is that it also shows Properties, Fields and Methods that match your keyword.
In a large codebase that means the navigate to window is flooded with members while I'm mainly using this to look for Classes.
Question:
Is it possible to hide Properties and other Members in the 'Navigate to' window?
I've looked into Settings but with no luck to this moment.
Note: I'm not using Resharper and looking for a Visual Studio native solution
In Visual Studio 2017 they've added a really useful feature where you can type an 'f' in front of your search to only look for files.
Like: f banana pancakes searches for only files with banana pancakes. You can also use t for types and there are some other really good new options.
This is available also for the community edition. If you're using an older version of Visual Studio I recommend taking the effort to upgrade.

emmet conflicting with snippets visual studio 2013

Every time I type an emmet string and press tab visual studio replaces it with just the main element. Then i realized it was preferning the the snippet that it was auto suggesting. Is there a way around this or fix it? I am using Visual Studio 2013 Community edition on windows 7 64bit if that makes any difference
I found the problem, I was using another plugin called Viasafora that colors braces and makes it easier to to see your indentations it had a default option for showing completions ans you type. I had to go turn it off.

Filtering the Visual Studio toolbox

Does anyone know if it is possible at all to filter the Toolbox's items in Visual Studio using an add-in?
Visual Studio 2010 introduced the ability to search but I want to filter, for example: type in button and it must show all items containing "button", same as on this on this Delphi XE screenshot:
This is a very good answer for this question. I copied from the VS blog:
In VS 2010 Beta2, we’ve added the ability to search for controls in the toolbox by name. To use it, put focus in the toolbox (by clicking in it, for example) and start typing the name of the control you want to find. As you type, the selection will move to the next item that matches what you've typed so far.
http://blogs.msdn.com/b/visualstudio/archive/2009/10/26/toolbox-search.aspx
This is something not possible as microsoft does not reveal the secret of adding toolbox controls details completely. They make change the process for each platform and for each versions of visual studio. if we have a clear details of how they add, we can also do the similar kind of small application with search capability and add it as add-in.
Luckily Visual Studio 2012 now has that feature!

Can I make Visual Studio's code completion window more like Eclipse (Java)?

Is it possible to make Visual Studio 2010's code completion window more like that of Eclipse (Java)?
In particular, I'd love the code completion window to give me a variable's type, and a method's return type and expected parameters, without needing to hover the highlight over that particular variable/method. Here's Eclipse's:
VS's code completion's little icons that indicate if something is a property, method etc are useful, but they just aren't enough.
Unfortunately, there's no built-in way to do this. Visual Studio offers only very limited options related to customizing its Intellisense display.
You'll have to turn to third-party solutions or add-ins, or settle down to write your own using one of the existing options as a guide. Here are a few that can be found around the web:
Visual Studio Intellisense Presenter (looks like it might be very close to what you're looking for)
CSharpIntellisensePresenter
Visual Assist X (commercial software with 30-day free trial)

Customizing Visual Studio's Intellisense

A recent project had me working with C# again, and I noticed something I hadn't before -- C#'s Intellisense shows possible exceptions that can be thrown when calling a method
Since I work mostly with VB.NET applications, it'd be really nice to have this feature in those applications as well, but it's unfortunately absent from VB's Intellisense
Is there any quick and easy way I can customize Visual Studio's Intellisense to show exceptions (as well as other members from the XML comments)? Or am I looking at a full modification using the SDK?
Update: 29-Sep-2008 1:49 PM -- I figure this will be more complicated than simply changing a configuration setting. Since the comments are XML-based, I was hoping for an XSLT file somewhere buried in the Visual Studio directory, but nothing has turned up so far. Looks like I'm going to have to dig into the Visual Studio SDK.
Try going to Tool -> Options...
Then Text Editor -> Basic
and make sure both options "Auto list members" and "hide advanced members" are unchecked.
Also check "Parameter information".
I cannot validate this information because my current Visual Studio installation is C# standalone.
Regards,
Luís

Resources