Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command vs. Immediate Window in Visual Studio

The Command Window and the Immediate Window seem to do very similar things (for example, I can display variables in both windows by typing ? myVariable). What are the differences and why does Visual Studio include both?

like image 894
Heinzi Avatar asked Jan 25 '12 09:01

Heinzi


People also ask

What is the immediate window in Visual Studio?

Applies to: Visual Studio Visual Studio for Mac Visual Studio Code. Use the Immediate window to debug and evaluate expressions, execute statements, and print variable values. The Immediate window evaluates expressions by building and using the currently selected project.

Is there an immediate window in Visual Studio code?

There is no Immediate Window unlike Visual Studio in VSCode. But you can still execute Javascript in VSCode. Open the JavaScript file in VSCode, then use shortcut Ctrl + Alt + N , the code will run and the output will be shown in the Output Window.

What is the 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. To display Immediate Window, choose Debug >Windows >Immediate or press Ctrl-Alt-I.

What is the difference between the graphics window and the commander window?

The difference between GUI and CLI is that the GUI allows the user to interact with the system using graphical elements such as windows, icons, menus while the CLI allows the user to interact with the system using commands. In brief, GUI is more user-friendly, and CLI is more advanced and powerful.


1 Answers

They do different things.

Immediate window:

The Immediate window is used at design time 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.

Command window:

The Command window is used to execute commands or aliases directly in the Visual Studio integrated development environment (IDE). You can execute both menu commands and commands that do not appear on any menu.


The immediate window is a debugging aid.

The command window lets you execute commands (say menu items) at any time.

Though they share some functionality they each have a separate focus.

like image 160
Oded Avatar answered Oct 05 '22 18:10

Oded