Code snippets for methods in Visual Studio

前端 未结 8 1523
青春惊慌失措
青春惊慌失措 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 13:51

    You can download the method snippets as a Visual Studio Extension.

    It supports the following:

    method (typical method)
    
    vmethod (virtual method)
    
    smethod (static method)
    
    xmethod (extension method)
    
    1. In Visual Studio, go to menu ToolsExtensions and Updates...

    2. Observe the Extensions and Updates window

    3. Enter "C# Methods Code Snippets" in the search field (upper right)

提交回复
热议问题