codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Feature Request]: Return the ability to uncomment code

Open patrickdickey52761 opened this issue 2 years ago • 3 comments

Describe your idea in details

I am bringing up the issue rasied in https://github.com/eranif/codelite/issues/2738 as it still applies. I'm running version 16.0.0 and there is no menu option or keyboard shortcut for uncommenting code. If you try the option that would normally comment the code, it just adds a second set of comments to the selected block of code.

This feature was available in previous versions of codelite and it would be nice to see it restored. Especially for multiple lines of code, where it's tedious to delete the comments from each line (if they are set up using line comments as opposed to a block comment).

patrickdickey52761 avatar Nov 20 '22 22:11 patrickdickey52761

I'm running version 16.0.0 and there is no menu option or keyboard shortcut for uncommenting code.

I don't think there ever was. Instead the first two items in Edit > Comment toggle.

If you try the option that would normally comment the code, it just adds a second set of comments to the selected block of code.

Which OS are you using? I've just tested 16.0.0 on Linux (debian 11). Comment Line does toggle for me. Comment Selection doesn't uncomment, but I don't think it ever did: I checked recent releases from 12.0, plus a much older one (2.9!), and none of them uncommented. If you know of a version where it used to work...

dghart avatar Nov 29 '22 16:11 dghart

Doesn't Ctrl-/ does that for you? - for me it toggles the comment (comment or uncomment, depending on the current status)

eranif avatar Dec 01 '22 06:12 eranif

I had tried that and it didn’t work. I’ve since gotten it to work, but occasionally it does add a second set of comments instead of toggling them on/off. This issue can be closed, if necessary as the keyboard shortcut does work for the most part. Unless adding the ability to uncomment lines would be a feature that can be added.

Have a great day. 😊 Patrick.

From: Eran Ifrah @.> Sent: Thursday, December 1, 2022 12:38 AM To: eranif/codelite @.> Cc: Patrick Dickey @.>; Author @.> Subject: Re: [eranif/codelite] [Feature Request]: Return the ability to uncomment code (Issue #3106)

Doesn't Ctrl-/ does that for you? - for me it toggles the comment (comment or uncomment, depending on the current status)

— Reply to this email directly, view it on GitHub https://github.com/eranif/codelite/issues/3106#issuecomment-1333281300 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAILJP3GBNPJIQSGNGYOOW3WLBBWJANCNFSM6AAAAAASGCD7K4 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AAILJP2THYDGQPMWVTWSDBDWLBBWJA5CNFSM6AAAAAASGCD7K6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSPPBBBI.gif Message ID: @.*** @.***> >

patrickdickey52761 avatar Dec 01 '22 22:12 patrickdickey52761