Add Selection to Chat
Use this feature to add selected lines of code to a conversation with Coding Assistant for further explanation, code improvement suggestions, and documentation generation.
Overview
The Add Selection to Chat feature is part of Coding Assistant. It allows you to highlight specific lines of code and quickly share them with the chat interface. You can then request explanations, suggestions, or generate documentation for the selected snippet.
Why Use It
- Add clarity and context when seeking AI-driven code reviews or improvements.
- Generate documentation for specific code segments.
- Maintain a clean workflow by focusing on only the relevant lines of code.
Prerequisites
- Install and enable WiseGPT in VS Code.
- Verify that WiseGPT’s Chat interface is accessible in the Primary Side Bar.
Steps
2
Right-Click Context Menu
Right-click the selected code. Then, select WiseGPT and choose Add Selection to Chat.
3
Add to Chat
This action will send the selected lines of code to the Chat interface in the Primary Side Bar, where you can Chat.
Troubleshooting
WiseGPT option does not appear in the context menu.
Confirm that Coding Assistant extension is installed and enabled.
Selected code does not show up in the chat window.
Check your network connection and retry the selection process.