As you probably know, you can use the Visual Studio Immediate window to execute a method while your application is running, but you also can execute a method while the application is not running. Lately I have used this functionality to execute methods I'm working on without running the project. Like, for instance, in the figure below I didn't remember the syntax to format a date. So I wrote a test method and fired up the Immediate Window (Control-Alt+I or from the menu: Debug->Windows->Immediate) and entered Model.Tasks.testDate() (Model is the namespace, Task is the class and testDate is the method). The method was executed, and I got confirmed that my syntax was correct. This way I saved a lot of time. I didn't need to wait for VS.NET to compile the code, and execute the project.

Tags: