-1

Toggle comment shortcut removes other comments

Romain Goncalves 6 years ago • updated 6 years ago 0
Situation : 
  • File type : .js
  • I have a class description comment at the start of my file :
    /**
     * Class description
     */
  • I have a big comment block at the end of the file (classic /* ... */)

How to reproduce : with that similar file structure, select multiple lines, and use the "Toggle Comment" shortcut (Ctrl+/ on my machine)

At first you think nothing has happened, and if you try it again, it will comment your lines. But what you may not have noticed is the effects of the first shortcut use : it removed the "/*" at the start the file and the "*/" at the end, causing execution issues.


I can reproduce the bug on 2 computers (build 2126 on one and 2181 on the other) with the same effects. Both computers use Windows XP Pro x86