Replace add-to-context picture in README.md

This commit is contained in:
Jinglei Ren 2023-08-17 21:45:54 +08:00 committed by GitHub
parent ac36078d78
commit 867a8d397b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ Great output requires great input, to maximize the power of AI, DevChat assists
- The most fundamental operation involves selecting code (either files or snippets) and adding it to DevChat. For instance, you can add a function along with an existing test case to the prompt context, and ask DevChat to generate several test cases for the function. The test case serves as a useful reference for DevChat, enabling it to understand how to write a valid test case in your environment, thus eliminating the need for you to specify every requirement or setup in your prompt.
![Add code to context](https://github.com/devchat-ai/devchat-vscode/assets/592493/24245e01-79d3-4bb3-9681-2a8706e9a233)
![Add to context](https://github.com/devchat-ai/devchat-vscode/assets/592493/9b19c798-d06f-4373-8f8a-6a950c3a8ba5)
- You can incorporate the output of any command, such as `tree ./src`, into a prompt with DevChat. For example, you can add the output of `git diff --cached` to DevChat, which can then generate a commit message for you.