custom code snippets in intellisense

后端 未结 3 1423
梦毁少年i
梦毁少年i 2021-01-04 12:06

I\'ve started exporting some of my frequently used blocks of code to custom snippets. Is there a way to get these to show up in IntelliSense and not have to use the snippet

3条回答
  •  萌比男神i
    2021-01-04 12:38

    Here is a brief description on how to create your own Snippets in Visual Studio with the 'shortcut' tag.

    using a Code Snippet for INotifyPropertyChanged

    This is the tag that is required to get the shortcut functionality.

     switch 
    

    Here is a snippet for switch which is inbuilt into VS

    
    
        
    switch switch Code snippet for switch statement Microsoft Corporation Expansion
    expression Expression to switch on switch_on cases GenerateSwitchCases($expression$) default:

提交回复
热议问题