Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# 'out' variable intellisense completion #46268

Closed
vsfeedback opened this issue Jul 23, 2020 · 3 comments
Closed

C# 'out' variable intellisense completion #46268

vsfeedback opened this issue Jul 23, 2020 · 3 comments
Labels
Area-IDE Concept-Continuous Improvement IDE-IntelliSense Completion, Signature Help, Quick Info Resolution-Duplicate The described behavior is tracked in another issue
Milestone

Comments

@vsfeedback
Copy link

vsfeedback commented Jul 23, 2020

This issue has been moved from a ticket on Developer Community.


In C#, I often use the "Try..." methods to retrieve a value via an out variable. For example, the TryGetValue method on Dictionary. I notice that Visual Studio 2019 IntelliSense shows a reasonable out parameter type and default variable name, like out SubscriptionItem value in the example shown below. However, I can't figure out a way to autocomplete this and accept the suggested parameter definition in the manner of an expanded snippet.

Is there a way to autocomplete this without manually typing out what IntelliSense is already suggesting? If not, I'd like to suggest this feature. Thanks!

image


Original Comments

Feedback Bot on 7/9/2020, 11:16 PM:

Thank you for taking the time to provide your suggestion.  We will do some preliminary checks to make sure we can proceed further.  We'll provide an update once the issue has been triaged by the product team.

@sharwell sharwell added Area-IDE IDE-IntelliSense Completion, Signature Help, Quick Info labels Jul 23, 2020
@Dreamescaper
Copy link
Contributor

Probably same as #39538.

@jinujoseph jinujoseph added Concept-Continuous Improvement Need Design Review The end user experience design needs to be reviewed and approved. labels Jul 28, 2020
@jinujoseph jinujoseph added this to In Queue in IDE: Design review via automation Jul 28, 2020
@jinujoseph jinujoseph added this to the Backlog milestone Jul 28, 2020
@jinujoseph
Copy link
Contributor

cc @genlu

@sharwell
Copy link
Member

Duplicate of #39538

@sharwell sharwell marked this as a duplicate of #39538 Jul 28, 2020
@sharwell sharwell added Resolution-Duplicate The described behavior is tracked in another issue and removed Need Design Review The end user experience design needs to be reviewed and approved. labels Jul 28, 2020
@sharwell sharwell removed this from In Queue in IDE: Design review Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement IDE-IntelliSense Completion, Signature Help, Quick Info Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

4 participants