The generation of custom commands does not work well in VSCode. However, we could add a button called “Instant Command”. When pressed, this button would display an input field at the top of the editor. The user could type a prompt into this field. Cody would then execute that prompt using the currently selected code.
@SphaeroX, we have a new feature that allows you to add the selected code to the chat view with right-click (Cody Chat: add as context) so that you can type your prompt directly in the chat box. Would that be a good workaround for your use case here?
Thank you very much, I already use that and think it’s great.
But the problem is that I can’t select and use than my custom commands. I created this specifically for selected text. So example: comment with this code line by line