facebook

Toggle comment does not remove comments prefixed with space

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #539316 Reply

    Fedor Losev
    Participant

    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 6 years, 5 months ago by Fedor Losev.
    #539325 Reply

    support-swapna
    Moderator

    Fedor,

    Thank you for the details. I could replicate the problem at my end. A bug is filed for the dev team and the fix might be included in the next CI release. We will keep you posted about it.

    Thank you for reporting the problem.

    –Swapna
    MyEclipse Support

    #544312 Reply

    support-swapna
    Moderator

    Fedor,

    This issue is fixed in our latest 2017 CI 9 release. Please update and let us know how it works for you.

    –Swapna
    MyEclipse Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Toggle comment does not remove comments prefixed with space

You must be logged in to post in the forum log in