CodeRush 模板和智能感知

发布于 2024-12-20 20:12:28 字数 112 浏览 5 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷情妓 2024-12-27 20:12:28

为此,您可以使用 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.

未蓝澄海的烟 2024-12-27 20:12:28

我最终做的是创建与相关 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文