C# 编辑器和编译器首选项

发布于 2024-08-23 06:13:34 字数 178 浏览 6 评论 0原文

对于那些能够通过代码片段快速回答一些问题的人。我必须说,我已经被打败了好几次,因为加载 Visual Studio、文件 -> 。新项目...确实需要一些时间。有没有人 - 特别是那些在这里提供答案的人 - 在 Windows 上有一个很好的快速编辑器,允许您输入一些 C# 代码并编译它?基本上 - 为您编写示例代码的最快方法是什么?

For those of you that are quick to answer some questions, with code snippets. I must say that I have been beaten to the punch a few times because loading up Visual Studio, File -> New Project... does take some time. Does anyone out there - particularly for those that are contributing answers here - have a good quick editor on Windows that allows you to enter some c# code, compile-it? Basically - what's the fastest way of writing sample code for you?

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

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

发布评论

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

评论(6

百思不得你姐 2024-08-30 06:13:34

是的。

LINQPad

在 LINQPad 中键入一段代码比创建 Visual Studio 项目要快得多,而且它的对象图比 Visual Studio 的“监视”窗口更可用。

我发现 LINQPad 对于在 StackOverflow 上回答问题非常有用。

Yes.

LINQPad.

Typing a piece of code into LINQPad is much faster than creating a Visual Studio project, and its object graph is more usable than Visual Studio's Watch window.

I find LINQPad extremely useful for answering on StackOverflow.

梦纸 2024-08-30 06:13:34

足够熟悉语言概念,无需 Visual Studio 的帮助即可在 Markdown 编辑器中编写代码片段。当您意识到自己犯了错误时,您将获得 5 分钟的免费编辑宽限期!

Enough familiarity with the language concepts to write snippets without the help of Visual Studio -- right in the markdown editor. And you get the 5-minute grace period for free edits when you realize you made a mistake!

清醇 2024-08-30 06:13:34

我通常一直保持 VS 打开,但作为替代方案,这个程序很有趣(而且重量更轻): 代码片段编译器

I usually keep VS open all the time, but as an alternative, this program is interesting (and lighter weight): Snippet Compiler

手心的海 2024-08-30 06:13:34

我通常会打开 Visual Studio,并已加载项目“测试”。

如果我对代码非常确定,我可以先发布它,然后尝试编译它,看看是否需要进行任何细微的调整才能运行它。

I usually have Visual Studio open with the project "Test" already loaded.

If I'm pretty sure about the code I can post it first, then try to compile it to see if there is any minor adjustments needed to make it run.

作死小能手 2024-08-30 06:13:34

我在这里不使用 IDE 编写代码片段。直接在降价框中。缺少选项卡很烦人(我正在考虑编写一个greasemonkey脚本来尝试缓解这个问题 - 到目前为止还没有抽出时间),但这并不完全

如果你想检查语法错误,你可以使用记事本和csc

I don't use an IDE for writing my code snippets here. Straight in the markdown box. Lack of tabs is annoying (I'm considering writing up a greasemonkey script to try and alleviate that - haven't got around to it so far), but it's not exactly hard.

If you want to check for syntax errors, you could just use notepad and csc.

¢蛋碎的人ぎ生 2024-08-30 06:13:34

如果这是一个相当简单的问题,我会直接在 Markdown 编辑器中凭记忆写下所有内容,而无需打开其他任何内容。

否则,我会使用 Snippet Compiler

If it's a fairly easy question, I'll write it all from memory straight in the markdown editor without opening anything else.

Otherwise I make use of the Snippet Compiler.

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