CodeRush 模板和智能感知
我正在使用 DevExpress 的 CodeRush 创建自定义代码片段模板。
无论如何,我是否能够通过 Intellisense 查看可用的模板,这样我就不必记住我想要创建的所有模板的名称?
I am creating custom code snippet templates using DevExpress' CodeRush.
Is there anyway for me to be able to see available Templates through Intellisense so I don't have to memorize the names of all of the templates that I want to create?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为此,您可以使用 CodeRush Training 工具窗口。只需将其停靠到适当的位置(例如 Visual Studio IDE 的左侧),然后查看它建议的代码片段模板。该窗口是上下文相关的,因此仅提出适当的代码模板建议。我假设一段时间后您会记住您将使用的所有有用模板。
You can use the CodeRush Training tool window for this purpose. Just dock it to the appropriate position (e.g. to the left side of the Visual Studio IDE) and see what code snippet templates it suggests. The window is context sensitive, so only appropriate code templates suggestions are made. I assume that after some time you will remember all useful templates you will work with.
我最终做的是创建与相关 CodeRush 模板同名的 Visual Studio 片段。这允许我在开始输入模板名称时弹出智能感知(b/c Visual Studio 认为我使用的是代码片段),然后我只需按热键即可使用 CodeRush 模板。
What I ended up doing was I created visual studio snippets with the same name as the CodeRush templates in question. This allowed me to have the intellisense popup when I started to type the name of the template (b/c Visual Studio thought I was using a snippet) and then I can just hit the hotkey to use the CodeRush template.