Change default XML comment snippet in Visual Studio

后端 未结 3 370
借酒劲吻你
借酒劲吻你 2020-12-01 12:28

When I hit /// in Visual Studio, is it possible to change the resulting snippet from this:

/// 
/// 
/// 

to

3条回答
  •  自闭症患者
    2020-12-01 12:43

    Here is the solution working in at least VS2010.

    Save the bottom code as a file summ.snippet.
    Visual Studio 2010 / Tools / Code Snippet Manager
    Click import, browse to file. Save with default options.

    Now goto your code window and type summ + tab + tab

    Result

    ///   
    

    with the cursor in the middle of the tag, ready to type.

    Here is the contents of the summ.snippet

    
    
        
            
    Summary - inline Created inline summary comment tag Mike Vanderkley summ Expansion
    $end$ ]]>

提交回复
热议问题