Microsoft KB Archive/116301

= PRB: Visual WB Matches Enclosure Symbols in Comments =

Article ID: 116301

Article Last Modified on 8/16/2005

-

APPLIES TO

 Microsoft Visual Workbench for Windows, when used with:  Microsoft Visual C++ 1.0 Professional Edition

 Microsoft Visual C++ 1.5 Professional Edition

 Microsoft Visual C++ 2.0 Professional Edition

 Microsoft Visual C++ 2.1</li></ul>

 Microsoft Visual C++ 4.0 Standard Edition</li></ul>

 Microsoft Visual C++ 5.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 5.0 Professional Edition</li></ul>

 Microsoft Visual C++ 5.0 Learning Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q116301

<div class="summary_section">

SUMMARY
In the Microsoft Visual Workbench or Developer Studio Editor, CTRL+] or the Find Matching Brace command under the Edit menu, finds a matching brace when the caret is located to the left of an enclosure symbol: either a parenthesis "(", brace "{", or bracket "[".

The editor is unable to distinguish whether these enclosure symbols are located within valid code or within a comment. As a result, using CTRL+] may find a matching enclosure symbol within a comment, as shown in the source code in the "MORE INFORMATION" section, below.

<div class="moreinformation_section">

Sample Code
/* Compile options needed: none */

void main(void) {      /* { */       }

Keywords: kbide kbprb KB116301

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.