Visual Studio中方法的代码片段 [英] Code snippets for methods in Visual Studio

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

问题描述

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

In Visual Studio I can type e.g.

对于 TAB TAB

并弹出一个代码段.

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

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中方法的代码片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆