2
Vote

Format Comment formats beyond selected text.

description

C++ code in VS2005sp1.
 
A simple repro case is the follwing code:
 
// Use lowest 7 bits of the byte.
int b = u30[i] & 0x7f;
 
Highlight in the first line then trigger FormatComment (Alt+C, Alt+F). The following results:
 
// Use lowest 7 bits of the byte. int b = u30[i] & 0x7f;
 
I did not expect the code to be pulled into the comment.
 
From the Help: "However if a block of text is selected, it will only format lines in that selection"

comments