Community
    • Login

    block comment and block uncomment can be merged into a single option like Toggle Block comment

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 585 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ganesh VenkatG
      Ganesh Venkat
      last edited by

      I had been using NPP for so long and I just felt one thing to enhance that when we right click on any block of lines in a xml file or java file ( note : I tried in these two ) and click on block comment and block uncomment to comment/uncomment a block of lines.

      Instead of having the comment/uncomment line as two different options , can they be merged into a single option like Toggle Block comment ?

      Picture1.jpg

      PeterJonesP 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Ganesh Venkat
        last edited by PeterJones

        @Ganesh-Venkat ,

        From what I understand, the logic to toggle a block comment could be much more complicated than toggling for a single-line comment, depending on the language’s syntax(es) for block comments. That logical complexity is probably why Notepad++ implements “Toggle Single Line Comment” (which you didn’t show in your screenshot), but not “Toggle Block Comment” – if the developer went to the effort to create “Toggle Single Line Comment”, he presumably also thought about “Toggle Block Comment” and dismissed it for technical reasons – because if it was as easy to implement, there would have been no reason to not implement it at the same time.

        Edit > Comment/Uncomment Standard Right Click Context
        395d8053-2e6f-46b4-8278-921f05019f6a-image.png cf83147c-e989-46ef-8900-398e5376854c-image.png

        It might be possible to implement (though complicated), but even if you followed the Feature request FAQ and put that feature request in the right place (as described in that FAQ), my guess is that the developers won’t spend the effort on that (and my opinion is that there are many other feature requests and bug reports that are more important). But I am not the arbiter of such decisions, so you are free to follow that FAQ to make an official feature request.

        —
        edit: crossed out the suggestion to make a feature request: it already exists, and as the FAQ says, you should not create duplicate feature requests.

        1 Reply Last reply Reply Quote 2
        • PeterJonesP
          PeterJones @Ganesh Venkat
          last edited by PeterJones

          @Ganesh-Venkat

          Update: there is already an existing feature request #8300 that was requested in May 2020, and the developers haven’t implemented it yet. You can feel free to upvote that request at the link I provided, but again, I am doubtful that anything will ever come of it.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors