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

Event handler tab-completion does not work in new project templates #59488

Closed
siegfriedpammer opened this issue Feb 11, 2022 · 4 comments
Closed
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@siegfriedpammer
Copy link
Contributor

Version Used: dev17

Steps to Reproduce:

  1. create a "new-style" .NET 6 console project
  2. try to use event handler tab completion

reproducer

Expected Behavior:

Event handler is generated and inserted as local function.

Actual Behavior:

Nothing happens

Notes:

I think, Visual Studio needs extra options in the new project dialog, to allow each user to select whether they want top-level statements and/or implicit usings. This would alleviate the pain I have with the new project templates.

image
from #43563 (comment), apparently this has been a known issue since May 2020.

Because top-level statements are effectively rubbed into one's face when creating a new project (not a good thing at all!), one would have every right to expect this to work.
Every time I try to adapt to this, I get bitten by something. and I am forced back to trusty old class Program.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 11, 2022
@Youssef1313
Copy link
Member

This was fixed in #58475.

@siegfriedpammer
Copy link
Contributor Author

I think, Visual Studio needs extra options in the new project dialog, to allow each user to select whether they want top-level statements and/or implicit usings. This would alleviate the pain I have with the new project templates.

Will this be taken into consideration?

@svick
Copy link
Contributor

svick commented Feb 12, 2022

@siegfriedpammer

I think, Visual Studio needs extra options in the new project dialog, to allow each user to select whether they want top-level statements and/or implicit usings.

There is an extensive discussion about that at dotnet/docs#27420.

@siegfriedpammer
Copy link
Contributor Author

@siegfriedpammer

I think, Visual Studio needs extra options in the new project dialog, to allow each user to select whether they want top-level statements and/or implicit usings.

There is an extensive discussion about that at dotnet/docs#27420.

Thank you. Seems there is nothing more for me to add to the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants