Skip to content

IntelliSense should complete undeclared variables that are referenced #52505

@vsfeedback

Description

@vsfeedback

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions