Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Immediate Window without debugging

Tags:

Rapid prototyping is arguably one of the most efficient ways to test new designs and I believe this to hold true for programming too.

I am looking for a tool similar to Matlab where one can execute some C# code while you type. The Immediate Window is almost ideal, but is naturally only usable when debugging.

Is there a way to use the Immediate Window (or a similar tool) without having to switch into debugging mode?

UPDATE:

After some more googling I found:

  • C# Shell (cssh): A cool idea, but quite limited at this stage.
  • SnippetCompiler: Nice, but I would prefer a command line type behaviour where the command is execute once I hit return.
like image 435
André Haupt Avatar asked Sep 16 '11 12:09

André Haupt


People also ask

How can I run code without debugging?

Ctrl + Alt + N (Run Code) is a shortcut provided by the "Code Runner" extension you installed while Ctrl + F5 (Run Without Debugging) is a shortcut provided by VS Code by default. Both shortcuts run the code without debugging and they have the same function.

How do I enable immediate Windows?

The Immediate window evaluates expressions by building and using the currently selected project. To display the Immediate window, open a project for editing, and then choose Debug > Windows > Immediate or press Ctrl+Alt+I. You can also enter Debug.

How do I open an immediate window in Visual Basic?

Press Alt+F11 (hold Alt key, then press F11 key) from anywhere in Excel. The Visual Basic Editor window will open. (Mac version is Fn+Alt+F11) Pressing Ctrl+G opens the Immediate Window and places the text cursor in it.

What is the purpose of immediate window?

The Immediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging.


1 Answers

Try LinqPad, it rocks ! It is made to test Linq queries but it ends being the best environment to try any kind of C# code ever made.

http://www.linqpad.net/

It is free but need to be activated (paid) to support intellisense.

like image 130
VdesmedT Avatar answered Oct 27 '22 21:10

VdesmedT