Automatically Add Regions to Code in Visual Studio

后端 未结 7 2021
轻奢々
轻奢々 2021-02-20 06:09

My team absolutely loves using regions, and with that in mind it\'s pretty much become a de-facto standard in our code. I recently came to realization that I\'m sick of writing

7条回答
  •  自闭症患者
    2021-02-20 07:09

    You could create a simple code snippet like the following one:

    
    
      
        
    Simple simple Expansion
    name Replace with the name of the action Action

    Save that file into C:\Users\\Documents\Visual Studio 2010\Code Snippets\Visual C#\My Code Snippets.

    Now you just need to reopen Visual Studio, type 'simple' into a class and press Tab key twice.

提交回复
热议问题