PRB: Visual WB Matches Enclosure Symbols in Comments (116301)



The information in this article applies to:

  • Microsoft Visual Workbench for Windows, when used with:
    • Microsoft Visual C++ 1.0
    • Microsoft Visual C++ 1.5
    • Microsoft Visual C++ 2.0
    • Microsoft Visual C++ 2.1
    • Microsoft Visual C++ 4.0
    • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
    • Microsoft Visual C++, 32-bit Professional Edition 5.0
    • Microsoft Visual C++, 32-bit Learning Edition 5.0

This article was previously published under Q116301

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.

MORE INFORMATION

Sample Code

   /* Compile options needed: none
   */ 

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

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbide kbprb KB116301