How to uncomment lines?

General questions regarding the usage of CodeLite
yzh_1991
CodeLite Curious
Posts: 8
Joined: Wed Jan 19, 2022 3:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

How to uncomment lines?

Post by yzh_1991 »

How to uncomment lines that are commented?
Any keyboard shortcuts?
I can't find it. Who knows?

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: How to uncomment lines?

Post by DavidGH »

Hi,

If you look in Settings > Keyboard shortcuts, and type 'comment' into the search box at the top, you will see:
Edit | Comment line
The default shortcut is Ctrl-/ which will comment/uncomment the current line, or multiple selected lines.

You can also access this from the Edit menu.

Regards,

David

yzh_1991
CodeLite Curious
Posts: 8
Joined: Wed Jan 19, 2022 3:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to uncomment lines?

Post by yzh_1991 »

Thank you for your reply.

ruynox
CodeLite Curious
Posts: 3
Joined: Sat Feb 19, 2022 8:01 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: How to uncomment lines?

Post by ruynox »

DavidGH wrote: Thu Jan 20, 2022 8:51 pm

Hi,

If you look in Settings > Keyboard shortcuts, and type 'comment' into the search box at the top, you will see:
Edit | Comment line
The default shortcut is Ctrl-/ which will comment/uncomment the current line, or multiple selected lines.

You can also access this from the Edit menu.

Regards,

David

I don't think it works as intended. In my case, that shortkey combination keeps adding more of these //. I've changed the shortcut and tried again, the result didn't differ.

ruynox
CodeLite Curious
Posts: 3
Joined: Sat Feb 19, 2022 8:01 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: How to uncomment lines?

Post by ruynox »

yzh_1991 wrote: Mon Jan 24, 2022 4:42 pm

Thank you for your reply.

Did that shortcut work for you? I have tried that but it kept adding more one-liner comments(//)...

yzh_1991
CodeLite Curious
Posts: 8
Joined: Wed Jan 19, 2022 3:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to uncomment lines?

Post by yzh_1991 »

ruynox wrote: Mon Feb 21, 2022 6:01 am
yzh_1991 wrote: Mon Jan 24, 2022 4:42 pm

Thank you for your reply.

Did that shortcut work for you? I have tried that but it kept adding more one-liner comments(//)...

Yes, it works.

Post Reply