Custom quick edit

Is it possible to allow creating a custom quick edit with a predefined prompt? For example, I frequently need to rewrite sections of code. It would be helpful to create a custom quick edit with a preset prompt like “Rewrite the code…” I could then assign a keyboard shortcut to this action. When I select a portion of code and press the shortcut, it would automatically run the quick edit using the custom prompt—essentially replicating the behavior of pressing Command+K, entering the prompt manually, and hitting Enter.