Automatic stub generation in visual studio IDE

若如初见. 提交于 2019-12-23 02:44:25

问题


Today one of my colleague showed me this trick in visual studio.

He types prop and hits tab twice

This makes the visual studio automatically expands that to a property.

No doubt, its a very cool feature.

But what is this trick called as ?

And is there any trick the same way i can type in method so that the IDE generates a method stub for me?

Thanks.


回答1:


The tricks you are referencing are called "code snippets" and are really useful for faster code writing. A complete list of default code snippets can be found here. Only the main method has currently a corresponding code snippet. There is also a tutorial for creating custom snippets.



来源:https://stackoverflow.com/questions/19024170/automatic-stub-generation-in-visual-studio-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!