The Immediate window is mostly used for debugging, variable evaluation, etc. You sound familiar with it, so I won’t belabor its usage. For more information on it, check out the MSDN article Immediate Window.
The Command window allows you to execute a variety of commands using their aliases. You’ll notice that the command window prompt has a > character. You can open a file in your solution using of Class1.cs, hit enter, and open it up. In the Find dialog and Immediate window you would need to include the >, making it >of Class1.cs.
Nonetheless, you can do exactly the same thing in the Immediate window by prefixing a command with > as well. The Command window saves you an extra keystroke and is ready to go whenever you drop a command alias.
Check out these links for some commands:
- Predefined Visual Studio Command Aliases
- Immediate Window Commands
For example, to open the Quick Watch window, type ?? in the command window. Try that in the Immediate window and you’ll get:
??
Invalid expression term '?'
Type >?? in the Immediate window, and it’ll work.