Visual Studio 中的命令与立即窗口 [英] Command vs. Immediate Window in Visual Studio

查看:38
本文介绍了Visual Studio 中的命令与立即窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令窗口和立即窗口的功能似乎非常相似(例如,我可以通过键入 ?myVariable 在两个窗口中显示变量).有什么区别?为什么 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?

推荐答案

他们做不同的事情.

立即窗口:

立即窗口用于在设计时调试和评估表达式、执行语句、打印变量值等.它允许您在调试期间输入要由开发语言计算或执行的表达式.

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 窗口用于在 Visual Studio 集成开发环境 (IDE) 中直接执行命令或别名.您可以执行菜单命令和未出现在任何菜单上的命令.

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.

这篇关于Visual Studio 中的命令与立即窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆