Bug 444 - Combine Intellisense and Resolve
Summary: Combine Intellisense and Resolve
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Windows
: Low enhancement
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2011-08-25 15:31 UTC by Jonathan Pobst
Modified: 2013-09-16 05:32 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Screenshot (11.55 KB, image/png)
2011-08-25 15:31 UTC, Jonathan Pobst

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jonathan Pobst 2011-08-25 15:31:50 UTC
Created attachment 189 [details]

When you use the name of a type that you do not have the correct "using" for, it says "No Matches".  You can right-click on the type and do Resolve to automatically fix this.

It would be nice if the 2 Resolve options could just appear in the Intellisense popup and when you select them they work the same as Resolve.

Screenshot attached.
Comment 1 Mikayla Hutchinson [MSFT] 2011-08-25 15:54:56 UTC
Control-alt-enter solves your problem.
Comment 2 Mikayla Hutchinson [MSFT] 2011-08-25 15:55:54 UTC
Sorry, meant control-alt-space.

Comment 3 Jonathan Pobst 2011-08-25 15:58:27 UTC
Ah, that works.  Can we pop that one up when there are no matches in intellisense but there are matches for resolve?  Obviously no one is going to discover Ctrl-Alt-Space.
Comment 4 Mike Krüger 2011-08-29 09:33:29 UTC
then we should advertise ctrl+alt+space - but you're right that this can be improved (and should be IMO)
Comment 5 Mikayla Hutchinson [MSFT] 2011-08-29 09:56:15 UTC
ctrl-alt-space has a different use case - it's the command to explicitly "import a type". That means it allows you to use substring matching to find the type and import it. The fact that it can be used to "resolve" a name that was already typed out fully is a happy side-effect.

In this specific use case - where the user types out an exact name and it says "No Matches" - I agree it would make sense to handle it specially. Maybe when the completion window is in a "no matches" state it could trigger a hook to offer more advanced suggestions, which would try to resolve that particular name, and offer the import or fully-qualified version.
Comment 6 Mike Krüger 2013-09-16 05:32:28 UTC
We've that as option (show import items) now.