Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Code Snippet cw Unexpected Behavior

When using code snippets in Visual Studio Code, the behavior of cw which turns into Console.WriteLine() always includes the fully qualified name when it is auto completed, as follows.

System.Console.WriteLine()

However, I already have using System; declared at the top of my file. Why does VSCODE insist on including the namespace in the code snippet? I am expecting it to auto complete into this,

Console.WriteLine()

Is this normal behavior to be expected from VSCODE?

like image 394
TankDev Avatar asked Apr 25 '26 13:04

TankDev


1 Answers

This is not yet possible and tracked in https://github.com/Microsoft/vscode/issues/10561

like image 91
Johannes Rieken Avatar answered Apr 27 '26 02:04

Johannes Rieken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!