命令窗口和立即窗口之间的实际区别是什么? [英] What's the practical difference between the Command Window and the Immediate Window?

查看:99
本文介绍了命令窗口和立即窗口之间的实际区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很好奇.

推荐答案

This blog post offers a pretty decent overview of the users of the two windows. Quote from that page:

命令窗口用于执行命令或别名直接在Visual Studio集成开发环境(IDE).您可以执行菜单命令和不会出现在任何菜单上.显示在命令窗口中,选择其他Windows,从查看"菜单中,然后选择命令窗口

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. To display the Command window, choose Other Windows from the View menu, and select Command 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 the Immediate window, open a project for editing, then choose Windows from the Debug menu and select Immediate.

据我所知,它还包括一个看起来非常完整的命令和别名列表,您可以从任一窗口中执行这些命令和别名(至少对于VS 2005).一项不错的功能是,您只需执行 cmd immed 命令即可在两个窗口之间切换.

It also includes a seemingly very complete list of commands and aliases that you can execute (for VS 2005 at least) - from either window, as far as I understand. Once of the nice features is that you can switch between the two windows simply by executing the cmd and immed commands.

此外,另请参见命令窗口上的MSDN页面和即时窗口.

In addition, see also the MSDN pages on the Command Window and the Immediate Window.

这篇关于命令窗口和立即窗口之间的实际区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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