An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @Hacker Ruzlan , and thanks for posting your question.
I understand how frustrating this change can be, especially when it disrupts years of muscle memory for such a frequently used shortcut.
You can configure Visual Studio so that the cw snippet works with a single Tab or Enter.
Go to:
Tools > Options > Text Editor > C# > IntelliSense
Configure the following settings:
- Enable Show completion list after a character is typed
- Set Snippets behavior to Always include snippets
- Set Enter key behavior to Always add new line on enter
- Disable Tab twice to insert arguments
- Enable Show new snippet experience
After applying these settings, type cw, ensure the snippet is selected in the IntelliSense list, and press either:
cw + Tab
or:
cw + Enter
It should expand to:
Console.WriteLine();
If the change does not take effect immediately, restart Visual Studio and test again inside a method body. Because Show new snippet experience is currently marked as an experimental feature, its availability and exact behavior may depend on your Visual Studio version.
If this instruction is applicable to your situation, I would greatly appreciate it if you could follow the instruction here so others experiencing similar behavior can benefit from it as well.