本文介绍了Visual Studio中方法的代码片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中,我可以输入例如

In Visual Studio I can type e.g.

并弹出一个代码段.

是否也有用于私有,公共等方法的内置代码段?

Are there built-in code snippets for private, public, etc. methods as well?

推荐答案

ctor :默认构造函数

prop :属性

propg :只读属性

sim :static int main方法

svm :static void main方法

这里有一个很好的列表此处.而且,如果您想制作自己的作品,片段设计器很好.

There's a good list here. And if you want to make your own, the Snippet Designer is very good.

这里是Visual 的所有Visual C#代码段; Studio  2017

这篇关于Visual Studio中方法的代码片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 17:18
查看更多