开发者

C# Editor and Compiler Preference

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?


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.


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!


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


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜