News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Enhanced snippets suggestion

Started by ander_cc, April 27, 2026, 03:38:57 AM

Previous topic - Next topic

ander_cc

Hello, Pelles.
If I want to use "Surround by" and "Comment" and "No comment", I should select a line first.
Could you add a "auto select current line" feature?
Could you add some shortcuts for "Surround by" and "Comment" and "No comment" ?

I want to use $0 twice or more. Could you add it?
Sincerely yours,
Ander
You cannot view this attachment.


Pelle

Quote from: ander_cc on April 27, 2026, 03:38:57 AMIf I want to use "Surround by" and "Comment" and "No comment", I should select a line first.
Could you add a "auto select current line" feature?
Why? I don't see the point.

Quote from: ander_cc on April 27, 2026, 03:38:57 AMCould you add some shortcuts for "Surround by" and "Comment" and "No comment" ?
"Tools" -> "Customize" -> "Keyboard" --> "Source" is a good start.

Quote from: ander_cc on April 27, 2026, 03:38:57 AMI want to use $0 twice or more. Could you add it?
You cannot view this attachment.
Again, why? You can only surround something once...

/Pelle

John Z

Hi ander_cc,

Quote from: ander_cc on April 27, 2026, 03:38:57 AMCould you add a "auto select current line" feature?

One of the many exceptional features of the Pelles C package is the ability to add features using the add-in api(s).

Checkout https://forum.pellesc.de/index.php?topic=11795.0 to see if it is useful for your request to for an 'auto select current line' feature, granted it is not quite 'auto', maybe semi-auto  :) , but perhaps useful.

John Z