Changing where comment characters are placed

Answered

Hi,

Im wondering if i can change the behaviour of my IDE such that when I use cmd+/ to comment a line of code, the comment tags (//) are placed in front of the text, rather than at the beginning of the line. I.E:

Current behaviour:

void main() {
if (condition) {
printf(...);
}
}

becomes

void main() {
if (condition) {
// printf(...);
}
}

whereas id like it to place the "//" like so:

void main() {
if (condition) {
// printf(...);
}
}

essentially placing the comment tags in line with the rest of indentation in that block

1 comment
Comment actions Permalink

Hello!

Please go to Preferences | Editor | Code Style | C/C++ > Code Generation and disable the "Line comment at first column" option.

0

Please sign in to leave a comment.