Visual Studio [Instant window] & [command window] (immediate window & command window)

Source: Internet
Author: User

Open [Instant window]

1) shortcut

CTRL + D, I

2) menu

3) in the [command window], enter immed

Open the [command window]

1) shortcut

CTRL + W,

2) menu

3) in the [Instant window], Enter cmd

4) in the [Instant window], enter> to directly execute the command

[Real-Time Window] variable Calculation

Command Format: 1) variable 2) expression 3 )? Expression 4) Debug. Print expression 5) Function

Tips for [Instant window] & [command window:

1) clear content command

2) In tag mode, it is equivalent to a recommended text editor for convenient operations.

3) intelliisense

3) use the up key and down key to retrieve the previously entered command and execute it.

4) press Ctrl + up/down to move the cursor in the window

Problem list

1) Debug. evaluatestatement

= Enter the evaluatestatement command to determine whether to interpret the equal sign (=) as a comparison operator or a value assignment operator. In the "instant" window, the equal sign (=) is interpreted as the value assignment operator. For example, the command> Debug. evaluatestatement (VARA = varb) will assign the variable Vara the value of the variable varb.
In contrast, in the "command" window, the equal sign (=) is interpreted as a comparison operator. Values cannot be assigned in the "command" window. For example, if the VARA and varb variables have different values, the command> Debug. evaluatestatement (VARA = varb) returns false.
The following prompt is displayed during actual execution. The reason is unknown.

Reference List:
Http://msdn.microsoft.com/zh-cn/library/f177hahy%28v=VS.100%29.aspx
Http://msdn.microsoft.com/zh-cn/library/c785s0kz%28v=VS.80%29.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.