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

IntelliSense should complete undeclared variables that are referenced #52505

Open
vsfeedback opened this issue Apr 8, 2021 · 2 comments
Open
Assignees
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-IntelliSense Completion, Signature Help, Quick Info IntelliSense-Completion
Milestone

Comments

@vsfeedback
Copy link

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


Let's say I write some code using an undeclared variable:

var mass = 100;
var momentum = mass * velocity;

This has a compile error: the velocity variable is not declared.

I have an idea: what if Visual Studio were to complete such variables? So if I start typing:

var vel

then it should see that I have an undeclared variable velocity and fill in the rest!


Original Comments

Feedback Bot on 3/14/2021, 11:37 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.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 8, 2021
@CyrusNajmabadi
Copy link
Member

This is a good idea. I wrote this at one point. @MarkWilsonThomas. Could this be something prose helps with?

@sharwell
Copy link
Member

sharwell commented Apr 9, 2021

This definitely seems like something the name suggester could include. Marking help wanted for the specific case of declaring local variables and parameters.

@sharwell sharwell added Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-IntelliSense Completion, Signature Help, Quick Info IntelliSense-Completion and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 9, 2021
@sharwell sharwell modified the milestones: Backlog, 17.0.P2 Apr 9, 2021
@jinujoseph jinujoseph modified the milestones: 17.0.P2, 17.0 Jul 16, 2021
@jinujoseph jinujoseph modified the milestones: 17.0, 17.1 Oct 11, 2021
@genlu genlu modified the milestones: 17.1, Backlog Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-IntelliSense Completion, Signature Help, Quick Info IntelliSense-Completion
Projects
None yet
Development

No branches or pull requests

5 participants