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

Feature Request: Add IntelliSense pre-selection for default, like new #1647

Closed
SLaks opened this issue Mar 27, 2015 · 7 comments
Closed

Feature Request: Add IntelliSense pre-selection for default, like new #1647

SLaks opened this issue Mar 27, 2015 · 7 comments
Labels
Area-IDE Feature Request help wanted The issue is "up for grabs" - add a comment if you are interested in working on it

Comments

@SLaks
Copy link
Contributor

SLaks commented Mar 27, 2015

When I type CancellationToken cancellationToken = default(, can you please pre-select CancellationToken, just like the new operator?

@sharwell
Copy link
Member

I think this is the least Pedantic ;) issue I've ever seen from you. Love the idea.

@SLaks
Copy link
Contributor Author

SLaks commented Mar 29, 2015

Nah; I've filed some other non-pendantic issues too. 😃
Recently, #1524, #1382, #1373, #1276, #534

@Pilchie Pilchie added Enhancement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it labels Mar 30, 2015
@Pilchie Pilchie added this to the Unknown milestone Mar 30, 2015
@Pilchie
Copy link
Member

Pilchie commented Mar 30, 2015

Yes, this is definitely a good suggestion (though I'm surprised MRU pre-selection doesn't help you in that specific case).

@SLaks
Copy link
Contributor Author

SLaks commented Mar 30, 2015

MRU doesn't help if I just added System.Threading via quick fix from the type name. (which is common, since that namespace isn't in the template)

Actually, on further thought, can you preselect default(T) after = in a non-primitive argument declaration? (since no other expression is valid)

@sharwell
Copy link
Member

Actually, on further thought, can you preselect default(T) after = in a non-primitive argument declaration? (since no other expression is valid)

Arguably beneficial for all such types, but only required for non-nullable, non-primitive value types.

@jaredpar jaredpar removed this from the Unknown milestone Nov 23, 2015
@Pilchie
Copy link
Member

Pilchie commented Nov 30, 2015

Fixed by #6907

@dpoeschl
Copy link
Contributor

@SLaks said:

Actually, on further thought, can you preselect default(T) after = in a non-primitive argument declaration? (since no other expression is valid)

Splitting out this part into #7113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

6 participants