Visual Studio相当于Eclipse syso(Visual Studio equivalent of Eclipse syso)

昨天,一位朋友向我展示了一种键入System.out.println("")的好方法,

这是syso + ctrl - space ,它是自动生成的。

有没有办法做到这样的事情与c# - Console.WriteLine("") ?

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("") ?

最满意答案

作为默认设置, Console.WriteLine()具有cw代码片段。 只需写下cw然后按Tab键即可。

您也可以创建自己的代码片段。

看一看;

代码片段 创建一个代码片段 Visual Studio中的代码片段

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 StudioVisual Studio相当于Eclipse syso(Visual Studio equivalent of Eclipse syso)

昨天,一位朋友向我展示了一种键入System.out.println("")的好方法,

这是syso + ctrl - space ,它是自动生成的。

有没有办法做到这样的事情与c# - Console.WriteLine("") ?

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("") ?

最满意答案

作为默认设置, Console.WriteLine()具有cw代码片段。 只需写下cw然后按Tab键即可。

您也可以创建自己的代码片段。

看一看;

代码片段 创建一个代码片段 Visual Studio中的代码片段

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