Apply chat suggestions

According to the recent changelog (0.15.0-0.15.1) you can ‘apply chat suggestions’

Apply chat suggestions: click on the play button on any code block to have the AI apply in-chat suggestions to your current file.

But where is this ‘play’ button?

Version: 0.15.1
VSCode Version: 1.83.1
Commit: 254fc847749811620c31fd780d453b15bd1013e0
Date: 2023-11-11T03:33:44.428Z
Electron: 25.8.4
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.5.0

Screenshot 2023-11-11 at 09.32.23

Hey! It’s the play button that you can find by hovering hover a code block in chat:

Screenshot 2023-11-11 at 10.37.50 PM

This is a great feature, i was almost thinking of asking for it. I usually use the chat feature over cmd-k otherwise i find cursor has written a heap of code that works but i don’t understand as well as i like - but i have to copy-paste manually as well.

Have you thought of adding a little ‘explainer’ toggle to cmd-k that gives a plain english explanation of the suggested change, or how it’s interpreted the request - i assume it’s a custom prompt that suppresses explanation, or uses the function output

I’m getting an error saying that it’s on available for API key users. Is that so? Ie some features going forward will not be available for the API users?

@Valed Unfortunately, /edit uses non-public models and therefore can’t be used by your own API key.

1 Like

good to know!

Suggestion: have these buttons at the bottom of the code snippet as well

That’s because, often, the code snippets are big and we need to scroll up significantly to find them.

Bonus point: allow to do this with mouse menu too.