User forums > Using Code::Blocks

Toggle comment not working very well

(1/2) > >>

rogeriodec:
Windows 8.1.
svn 11313
----------
Selecting 2 contiguous lines, the first one being marked as a comment and the second not, the Edit-> Toggle comment command does not reverse the first line as it should, but only comments the two lines.

Ex:

--- Code: ---//                    yant = yfrc;
                    xant = intersection.first;

--- End code ---

After selecting the two lines and apply Toggle comment:


--- Code: ---////                    yant = yfrc;
//                    xant = intersection.first;

--- End code ---

Is it a bug?

oBFusCATed:
This looks like the sane behaviour in this case.

rogeriodec:
Sorry, but I have to disagree.
Toggle means to reverse the situation of the lines.
That is, a line that is a comment, becomes a normal line and the line that is normal, becomes comment.
See Notepad ++, for example.

--- Code: --- aaaaaaaaaaaaaaa
// xxxxxxxxxxxxxx

--- End code ---

Select both line and press Ctrl+Q:


--- Code: --- aaaaaaaaaaaaaaa
// xxxxxxxxxxxxxx

--- End code ---

oBFusCATed:
So notepad++ does nothing in this case?

rogeriodec:
Sorry, mistyped.

After pressing Ctrl+Q (on Notepad++):


--- Code: --- // aaaaaaaaaaaaaaa
xxxxxxxxxxxxxx

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version