Skip to main content

Overview

Chat Mode is the primary interface for interacting with Cubent Coder. It allows you to communicate with AI using natural language to generate code, debug issues, explain concepts, and perform various development tasks.

Getting Started

To start using Chat Mode:
  1. Open the Cubent Coder panel in VS Code
  2. Type your question or request in the chat input
  3. Press Enter or click Send
  4. Review the AI’s response and any generated code

Basic Commands

Code Generation

Ask Cubent Coder to generate code for you:

Code Explanation

Select code in your editor and ask for explanations:

Debugging Help

Get assistance with debugging:

Advanced Features

Context Awareness

Cubent Coder understands your project context:
  • File awareness: References files in your workspace
  • Code understanding: Analyzes your existing codebase
  • Project structure: Understands your project’s architecture

Multi-turn Conversations

Continue conversations naturally:
  • Ask follow-up questions
  • Request modifications to generated code
  • Build upon previous responses

Code Actions

Cubent Coder can perform actions directly in your editor:
  • Create new files
  • Modify existing code
  • Run terminal commands
  • Install dependencies

Best Practices

Writing Effective Prompts

  1. Be specific: Provide clear requirements and context
  2. Include examples: Show what you want when possible
  3. Specify constraints: Mention any limitations or requirements
  4. Ask for explanations: Request comments and documentation

Example of a Good Prompt

Managing Context

  • Keep conversations focused on specific topics
  • Start new chats for unrelated tasks
  • Provide relevant code snippets when asking for help

Tips & Tricks

Quick Actions

  • Use @ to reference files in your workspace
  • Use # to reference specific functions or classes
  • Copy code blocks directly to your clipboard

Keyboard Shortcuts

  • Ctrl+Enter (or Cmd+Enter): Send message
  • Ctrl+/ (or Cmd+/): Focus chat input
  • Escape: Clear current input

Code Review

Ask Cubent Coder to review your code:

Troubleshooting

Common Issues

AI not responding:
  • Check your API key configuration
  • Verify internet connection
  • Check API rate limits
Responses seem off-topic:
  • Provide more context in your prompts
  • Start a new conversation
  • Be more specific about your requirements
Code suggestions don’t work:
  • Ensure the AI understands your project structure
  • Provide relevant file context
  • Specify the programming language and framework

Next Steps

Try Agent Mode

Let Cubent Coder work autonomously on complex tasks

Create Custom Modes

Build specialized AI personas for your workflow