Things apply on svn versions after revision 1991 !!
When you add a TO DO item in your project (by right clicking : add to-do item), you can have the 'comment' code being inserted in 3 places :
- on the line above the current line (current line, is the line on which you right clicked)
- on the line below the current line
- on the current line (exactly where the caret is now)
I'dd like to elaborate on the last option.
The caret is positioned on the spot where you right clicked, so it might be possible that you right clicked somewhere in the middle of a line of code.
An example :
Suppose we right clicked just before the 7 of 78.
Say we added a to-do item of cpp style with text "test" on the "exactly where the caret is now", then we would insert on the position just before the 7 the following piece of code :
It is obvious that this would break the correct syntax of the code, since we would get :
int x = 25 + // TODO (ldc##): test78;
Now there are some solutions, either we can do as in the past, don't allow cpp style (//...) in the "exact" caret option, and make c-style comments out of them (/*...*/). This was the old behaviour.
Today, we provide some more choices to the user, but to accomplish that we ask the user explicitly. We allow 3 possibilities :
1) keep C++ style and move it to the end of the line
int x = 25 + 78;// TODO (ldc##): test
2) switch it to c style
int x = 25 + /* TODO (ldc##): test*/78;
3) keep it as C++ style and don't change the insertion position (probably the most dangerous choice, but if you want, well it's available, and if you break things, don't complain ... ;-))
So if you don't like the c-style comments, you can do it the c++ style now.