Skip to content

Commit 64dcbd9

Browse files
Add Smart Apply documentation to JetBrains and Visual Studio client installation guides
Co-authored-by: Amp <[email protected]> Amp-Thread-ID: https://ampcode.com/threads/T-b439070c-d0c5-48e5-86bb-b4fe982b51dc
1 parent 7bbcd00 commit 64dcbd9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/cody/clients/install-jetbrains.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ To help you get started, there are a few prompts that are available by default.
168168

169169
![jb-default-prompts](https://storage.googleapis.com/sourcegraph-assets/Docs/jb-default-prompts-2025.png)
170170

171+
## Smart Apply code suggestions
172+
173+
Cody lets you dynamically insert code from chat into your files with **Smart Apply**. Every time Cody provides you with a code suggestion, you can click the **Apply** button. Cody will then analyze your open code file, find where that relevant code should live, and add a diff. For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
174+
175+
Smart Apply also supports executing commands in the terminal. When you ask Cody a question related to terminal commands, you can execute the suggestion in your terminal by clicking the `Execute` button in the chat window.
176+
177+
![smart-apply-execute](https://storage.googleapis.com/sourcegraph-assets/Docs/smart-apply-2025.png)
178+
171179
### Inline code edits
172180

173181
You can directly perform inline edits on your code without opening the chat window.

docs/cody/clients/install-visual-studio.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ To help you get started, there are a few prompts that are available by default.
7575

7676
![cody-vs-prompts](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-vs-prompts-102024-2.png)
7777

78+
## Smart Apply code suggestions
79+
80+
Cody lets you dynamically insert code from chat into your files with **Smart Apply**. Every time Cody provides you with a code suggestion, you can click the **Apply** button. Cody will then analyze your open code file, find where that relevant code should live, and add a diff. For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
81+
82+
Smart Apply also supports executing commands in the terminal. When you ask Cody a question related to terminal commands, you can execute the suggestion in your terminal by clicking the `Execute` button in the chat window.
83+
84+
![smart-apply-execute](https://storage.googleapis.com/sourcegraph-assets/Docs/smart-apply-2025.png)
85+
7886
## Autocomplete
7987

8088
Cody for Visual Studio supports single and multi-line autocompletions. The autocomplete feature is available in the Cody extension starting in `v0.2.0` and requires a Visual Studios version of 17.8+ and above. It's enabled by default, with settings to turn it off.

0 commit comments

Comments
 (0)