Formatting Literal parameters of a C# code snippet

前端 未结 3 2126
一个人的身影
一个人的身影 2020-12-01 14:13

Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates?

Specifically I\'d like to know if

3条回答
  •  忘掉有多难
    2020-12-01 14:39

    Unfortunately there seems to be no way. Snippets offer amazingly limited support for transformation functions as you can see.

    You have to stick with the VS standard solution, which is to write two literals: one for the property name, and the other for the member variable name.

提交回复
热议问题