How to insert a code snippet for Debug.WriteLine (); in visual studio?

I can just insert the code snippet for Console.WriteLine(); just using cw
with Tab + Tab . But I can not find the same opportunity for Debug.WriteLine(); .

I want to know how we can customize the code snippet template in Visual Studio for Windows Phone?

+4
source share
1 answer

In Visual Studio 2010 (and, suppose, other versions), there is no fragment for Debug.WriteLine() . In this case, you need to create your own fragment. Fortunately, this is not so difficult with the resources available:

If you use ReSharper, Code Templates and, in particular, Live Templates are a quick and easy option.

+4
source

Source: https://habr.com/ru/post/1403073/


All Articles