Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio equivalent of Eclipse syso

Yesterday a friend showed me a nice way to type System.out.println(""),

That is syso + ctrl-space and it is auto-generated.

Is there a way to do something like it with c# - Console.WriteLine("") ?

like image 953
Ofiris Avatar asked Feb 01 '26 04:02

Ofiris


2 Answers

As a default, Console.WriteLine() has cw code snippet. Just write cw and hit Tab key.

You can create your own code snippets also.

Take a look;

  • Code Snippets
  • Creating a Code Snippet
  • Code Snippet in Visual Studio
like image 108
Soner Gönül Avatar answered Feb 03 '26 17:02

Soner Gönül


There is a built-in snippet cw.

like image 33
lc. Avatar answered Feb 03 '26 18:02

lc.