VS2008 有哪些可用的代码片段插件?

发布于 2024-08-09 19:38:21 字数 448 浏览 2 评论 0原文

我想要一个 VS2008 的代码片段编辑器。

我只想按一下热键,打开编辑器,输入我的代码片段,运行到断点并单步执行。

我不想创建一个项目,创建一个 xml 文件,或者如果我不想的话,甚至必须保存我的文件。

我浏览过 什么您是否确实希望为 Visual Studio 2005/2008 提供插件,但没有看到任何内容。

有人知道可以让我做到这一点的插件吗?谢谢

I want a code snippet editor for VS2008.

I'd like to just hit a hot key, bring up an editor, type in my snippet, run to my break point and step through.

I don't want to have to create a project, create an xml file, or even have to save my file if I don't want to.

I've looked through What plugin would you really like to have for Visual Studio 2005/2008 already, but didn't see anything.

Anybody know of an plugin that will allow me to do this? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

南城旧梦 2024-08-16 19:38:21

根据您想要编辑一次性代码片段还是可重用的 Visual Studio 片段,您可能会寻找类似 代码片段编译器...

Depending on whether you want to edit a throwaway code snippet or a reusable Visual Studio snippet, you might be looking for something like Snippet Compiler...

爱已欠费 2024-08-16 19:38:21

查看 Snipper

Check out Snipper.

岁月如刀 2024-08-16 19:38:21

我不知道有任何 VS 插件可以做到这一点。我知道你为什么想要这个。有时我只是想执行某些逻辑语句,而不希望创建项目的麻烦。

我的临时解决方案仍然是,有一个控制台项目。将项目的链接放在任务栏的快速启动上。我从 main 函数运行代码,并在需要时一遍又一遍地重新启动它。麻烦的是,我需要删除之前的代码。

优点是我可以添加对非标准组件或第三方组件的引用。

I don't know of any VS add-in for that. I do know why you want this. Sometimes I just want to execute certain logic statements and don't want the hassle of project creation.

My improvised solution is still, have a console project. Place the link to the project on my taskbar's quick-launch. I run my codes from the main function and resue it over and over again whenever I need it. The hassle is, I need to delete the codes from the previous one.

The plus point is I get to add reference to non-standard assembly or 3rd party ones.

一影成城 2024-08-16 19:38:21

我重新提出这个问题是为了说 Linqpad 可能是代码片段编辑器/编译器,这些天。
我认为它的诞生是为了针对数据库测试 LINQ 表达式,并且它特别适合这样做,但它也可以作为通用代码片段编译器。

有一个免费版本和一些付费版本,这些版本添加了代码完成和调试器等细节。

I'm resurrecting this question to say that Linqpad is probably the snippet editor/compiler, these days.
I think it was born to test LINQ expressions against a database, and it's particularly geared towards doing that, but it's good as a generic snippet compiler, too.

There's a free version plus some paid versions that add such niceties as code completion and a debugger.

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