Reputation: 3381
Sorry about the title, but the issue I have is for example the following
var someArray = []
/**
* Some comment
* on
* multiple
* lines
*/
forEach(someArray, function(stuff) {
return stuff
})
Now let's say I want to comment that whole code block. I will highlight all of that and use ctrl + /. Well, in Sublime the results will be:
var someArray = []
*
* Some comment
* on
* multiple
* lines
forEach(someArray, function(stuff) {
return stuff
})
For some reason the comment block with asterisk is messing up the way Sublime does commenting.
I wanted the expected results to be:
// var someArray = []
// /**
// * Some comment here
// * on
// * multiple
// * lines
// */
// forEach(someArray, function(stuff) {
// return stuff
// })
Anyway I can fix this? It's hard to comment big blocks of code if the comment block is in the middle of it.
I am on Sublime3 Build 3114.
Upvotes: 1
Views: 990
Reputation: 4412
This happens for me too. You may want to report the issue on GitHub. Until they fix it, here's a workaround:
ctrl+shift+l
. I don't know what the equivalent would be in OSX, but if you open your default keybindings, you can find it by searching for "split_selection_into_lines"
. This creates a cursor on each line you highlighted.Home
twice to get all cursors to the beginning of the line (again, I don't know the OSX equivalent).//
.Upvotes: 1