Is there a method for uncomment in text editor


#1

I found there is a toggle comment for selected line . Could there be a core method for just for commenting / uncommenting irrespective of toggling. because with toggling it doesn’t do anything if half of it is commented


#2

It appears that the comment toggling method do not expose a way to separate commenting from uncommenting. It could be a good thing to refactor this part so that the language mode expose a method for each actions.

https://github.com/atom/atom/blob/master/src/language-mode.coffee#L29-L98

I won’t have time to make a PR, but I think it make a interesting thing to start contributing to Atom :wink: .