What's happened to VS 2022? The completion is only half there.

Falanga, Rod, DOH 610 Reputation points
2024-07-23T21:46:29.4066667+00:00

Today while working on a new project, I've discovered that the suggested completion (I forget the name of the feature) in VS 2022 of a command is only half there. I have never seen it behave this before. For example, if I type (in C#):

if

then hit the tab key twice it would normally put in:

if (value == true)
{

}

but no more. Now all it does is:

if (value == true) {

with no closing bracket!!! The same thing with happen with

using

Link statements, etc. Why isn't it giving the complete suggestion anymore? I'd rather it be on multiple lines, because that's how I've coded for years, but even if you put it all on one line, PLEASE put in the whole suggested completion!!!!!!!

I'm using VS 2022 Enterprise Edition, version 17.10.4

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tianyu Sun-MSFT 34,776 Reputation points Microsoft External Staff
    2024-07-24T03:16:50.9066667+00:00

    Hello @Falanga, Rod, DOH,

    Please uncheck following two options:

    Tools => Options => Text Editor => C# => IntelliSense => Tab twice to insert arguments (experimental) and Show new snippet experience (experimental).

    User's image

    They are experimental features, may be selected in the new(latest) version of VS 2022 automatically.

    Feel free to let us know if you have any further concerns:)

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.