Custom Commands

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.

Or even better above the “Add Content” button

1 Like

Have you tried Codyception by @Kynlo?

Thanks for this, it’s a pretty useful tool!

But the main problem for me is to reach the custom commands faster over the right click menu.

Yeah sorry about that misread the issue. It’s great feedback. I will make sure the product team sees this :slight_smile:

Have you tried keyboard shortcuts?

1 Like

Nope, but I will give it a try, thanks!

1 Like

@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?

image

1 Like

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