In most IDEs/languages toggle comment will detect that all line comments in selection are prefixed with space and remove such comments on toggle. Webclipse removes comments on toggle only when they are first characters in a line.
This is quite a friction, given that the default auto-format prefixes comment lines in scope blocks by spaces. It is especially annoying with auto format on save.
If I select two comment lines in the code below, CTRL+/ should remove comments.
test() {
// comment 1
// comment 2
}
Instead it does:
test() {
// // comment 1
// // comment 2
}
Expected:
test() {
comment 1
comment 2
}
But it will correctly remove if lines start with comment:
test() {
// comment 1
// comment 2
}
will make
test() {
comment 1
comment 2
}
-
This topic was modified 7 years, 1 month ago by Fedor Losev.