Cody for VS Code v0.12 release
Cody for VS Code v0.12 is now available and includes improved unit test generation, customizable chat pre-instructions, new custom command documentation, a new claude-instant-infill autocomplete model, and a new sign in experience.
Improved unit test generation (/test)
Unit test generation now better detects your testing framework, adds any dependency imports as needed, and includes the necessary stubs and test setup code:
We’ve added a new
cody.chat.preInstruction setting you can use instruct Cody at the beginning of every chat. For example, to have Cody output TypeScript you would set the pre-instruction to
To set a pre-instruction, in your VS Code user or workspace settings configure the
New custom commands documentation and menu improvements
We added new documentation for the experimental custom commands feature:
The "New Custom Command…" menu has been updated and allows you to choose where to save your new command, and a button for showing the generated JSON.
Insert at cursor no longer replaces selection
When you use the "Insert at Cursor" button in Cody’s chat view and have code selected in your editor, the code will be inserted before your selection instead of replacing the selected code.
New claude-instant-infill autocomplete model
We've migrated to an all-new
claude-instant-infill autocomplete model that can produce higher quality autocompletions using the context of surrounding code. For example, it performs better at autocompleting function documentation, and suggesting variable names that are not already in use. This new model is enabled by default.
Code graph context for autocomplete
Manually request an autocomplete
In cases where autocompletions don't automatically trigger, you can now request them manually using
opt + \ on Mac, or
alt + \ on Windows and Linux.
New sign in experience
For new users, you can now sign in to Cody directly using a Github, Gitlab or Google account:
Cody is open source, and wouldn’t be what it is without our amazing contributors 💖 A big thank you to everyone who contributed, filed issues, and sent us feedback.
To get started with Cody, install it from the VS Code Marketplace.