Chat makes it easy to ask for help from an AI without leaving your IDE. Get explanations, generate code, and iterate on solutions conversationally.
Type your question or request in the chat input and press Enter.
Examples:
Select code in your editor, then use the keyboard shortcut to include it in your chat:
Press Cmd/Ctrl + L
to send selected code to chat
Press Cmd/Ctrl + J
to send selected code to chat
Type @
to include specific context:
@Codebase
- Search your project for relevant code@Docs
- Include documentation@Files
- Reference specific files@Terminal
- Include terminal outputWhen the AI provides code in its response, you’ll see action buttons:
Press Cmd/Ctrl + L
(VS Code) or Cmd/Ctrl + J
(JetBrains) in an empty chat to start a new session.
Include details about:
If the first response isn’t perfect:
Select confusing code and ask “What does this code do?”
Include error messages and ask “How do I fix this error?”
Describe what you want: “Create a React component that displays a user profile”
Select code and ask “How can I make this more efficient?”
Chat is designed for quick interactions and iterative problem-solving. Don’t hesitate to ask follow-up questions!