Code snippets for methods in Visual Studio

前端 未结 8 1501
青春惊慌失措
青春惊慌失措 2020-12-07 13:26

In Visual Studio I can type e.g.

for TAB TAB

and a code snippet pops in.

Are there built-in code

相关标签:
8条回答
  • 2020-12-07 14:00

    If you want to see the list of all available snippets:

    • Press Ctrl + K and then Ctrl + X
    0 讨论(0)
  • 2020-12-07 14:07

    ctor: Default constructor

    prop: Property

    propg: Read-only property

    sim: static int main method

    svm: static void main method

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

    Here are all the Visual C# code snippets for Visual Studio 2017

    0 讨论(0)
提交回复
热议问题