I'm writing in C++. Visual Studio 2010 intellisense shows methods in alphabetical order.
Is there a way to make it show methods in original order (the order they appear in source code)?
From another question's answer:
There isn't a way to control the ordering within Visual Studio's Intellisense. If you do have multiple constructors (or methods), your only real control in terms of intellisense is to use EditorBrowsable with the appropriate EditorBrowsableState. This allows you to hide a contructor (or method) in intellisense, or only have it displayed in "advanced" mode, but does not allow you to reorder them.
Related
I am using VS2017 RC to write C# and have lately added Resharper Ultimate. However, Resharper Ultimate seems to ignore the code style I have set in Visual Studio and instead use another (probably the default C#) code style. Since Resharper often auto applies its code style, this is very annoying. I verified that it is indeed resharper by doing this:
Select some code, hit Edit -> Advanced -> Format Selection:
This is the visual studio formatter and it formats my code as desired
Select some code, hit Alt+Enter -> Format Selection:
This is Resharper's format command, and it messes up my codestyle.
So my questions are:
How can I tell resharper to use VS's code style?
If this is not possible, then where can I change the code style that resharper uses, so I can at least adjust the code style manually.
Why does Resharper have its own code style in the first place? Wouldn't it make a lot more sense to always use VS's code style?
As for question #3:
Why does Resharper have its own code style in the first place? Wouldn't it make a lot more sense to always use VS's code style?
I haven't compared the features of Resharper with recent Visual Studio versions in depth, but compared with older versions such as VS2010, the Resharper formatting engine is light-years ahead. Much more settings and flexibility to accomplish the formatting you want (and many sane defaults though that could be a matter of opinion of course). It has been enhanced even more in the 2017/2018 releases.
Resharper can also save the formatting settings to several layers of shared configuration files (committed to VCS) to make sure everyone automatically follows the same rules. This also allows for different rules to apply for different projects.
I am using dynamic objects in a project, and I'd like to provide intellisense for the object. I understand that Visual Studio can't know what to show for intellisense, but if I can plug into the intellisense, I do know what entries should show up.
Is there a way to extend Visual Studio's intellisense? If so, any pointers?
Thanks!
You can use Editor Extension Points.
You can find specific information for extending Intellisense near the bottom of this page:
Editor Extension Points
From this page you can get information about ICompletionSource and ICompletionSourceProvider which are the two interfaces you must implement to provide autocompletion.
I have an Animal class which my Cat class inherits.
When I hover over a cat instance or press CTRL+Space to see a full list, I wish to see only cat methods and properties first, then animal ones after instead of all properties and methods in one big alphabetical list.
MonoDevelop does this with a second CTRL+Space key press and is very handy.
Does Visual Studio 2010 or Resharper have this type of capability?
Visual Studio 2010 does not support such functionality. Anyway, since 2008 it is a big improvement that you do not need to type the name starting from its beginning.... ;-)
As far as I know, resharper does not have exactly the same mode too. However it is far more intelligent and configurable. There are also different key combination you can use for different types of completion.
You can read more about Code Assistance features here
Anyway, check the trial version before buying to be sure that it suits you. You can check also other comprehensive extensions like CodeRush Pro, etc.
ReSharper displays Cat's members in bold font and inherited members in regular font. So you see the difference.
Is there any way to change the order by of the autocomplete functionality for Visual Studio 2010?
I want to see the autocomplete options ordered by type, I mean:
Methods
Variables
etc...
I dont wan't to get it ordered alphabetically, so what can I do?
Visual Assist X allows you to filter by type.
There is a free add on CSharpIntellisensePresenter
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)