你使用C#什么ReSharper的4 +现场模板? [英] What ReSharper 4+ live templates for C# do you use?
本文介绍了你使用C#什么ReSharper的4 +现场模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么ReSharper的4.0模板的 C#你用
What ReSharper 4.0 templates for C# do you use?
让我们以下列格式共享这些:
Let's share these in the following format:
的可选描述的
快捷方式:
可用的: [AvailabilitySetting]
Shortcut: shortcut
Available in: [AvailabilitySetting]
// Resharper template code snippet
// comes here
宏性质(如果存在):
- Macro1的 - 值 - EditableOccurence
- Macro2 - 值 - EditableOccurence
- Macro1 - Value - EditableOccurence
- Macro2 - Value - EditableOccurence
- 每回答一个宏,请!
- 下面是一些样品 NUnit测试夹具和独立NUnit的测试用例一>描述现场模板建议的格式。
- One macro per answer, please!
- Here are some samples for NUnit test fixture and Standalone NUnit test case that describe live templates in the suggested format.
推荐答案
如此简单,如此有用的 - 一个小的λ:
Simple Lambda
So simple, so useful - a little lambda:
快捷方式:X
可用:其中允许使用表达式的C#
Available: C# where expression is allowed.
x => x.$END$
宏:无
Macros: none.
这篇关于你使用C#什么ReSharper的4 +现场模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文