Make a shortcut for Console.WriteLine()

前端 未结 14 1461
北恋
北恋 2020-12-23 19:55

I have to type Console.WriteLine() many times in my code. Is it possible to create a shortcut for Console.WriteLine so that I can use it like...

CW=Console.Wr         


        
14条回答
  •  生来不讨喜
    2020-12-23 20:31

    Visual Studio already has a default code snippet for this. Just type cw and press tab. Note that if you're considering using a method, it may lack some features like the automatic string.Format and other overloaded parameters.

提交回复
热议问题