Skip to main content

CodeGPT Chat

The CodeGPT Chat feature enhances your development experience by allowing you to engage in conversations with a Large Language Models (LLM) directly within your text editor. This tutorial will guide you through the steps to make the most of this powerful tool.

How to Use:

  • Open the Chat Tab
  • Navigate to the tools tab and click on Chat By default, Claude-3.5-Sonnet will answer on the chat.
  • Once the chat tab opens, you can start a conversation by typing a message and hitting Enter.
  • If you request code, copy or paste it directly into the file with the Insert code button.
  • You can clean the chat by clicking on New chat button or Reload the question
CodeGPT Chat conversation

Using Code Selection:

Select the desired code in your editor by level to share code snippets. The selected code will be automatically inserted into the chat interface, allowing CodeGPT to provide more accurate and context-specific responses. Call the function using @.

Code Selection

To read the name of the file or segment, you can use the slide bar to navigate through the name.

Context level

Please enable it, and AI will be able to understand the context of your code.

You have three levels of context:

  • Selected code: manually selected code
  • Codebase: we auto-select the codebase. Please index the codebase before on the Codebase button
  • Deep insights: we enrich the responses with code knowledge graphs.

Using Custom Context

Using custom contexts allows you to tailor the responses to specific situations.

Add Files

  1. Click the +Add Context button
  2. Choose #Files to add a file from your current project as context
  3. Click outside the window to save the changes

note

You can also add the current file to the workshop automatically by clicking on the right ⚙️ icon and enabling the corresponding option

My agents

  1. Click the +Add Context button
  2. Choose My agents to get the list of agents and click the one that you want to use
  3. Click outside the window to save the changes

Docs

  1. Click the +Add Context button
  2. Choose Docs to get the list of CodeGPT Marketplace agents and click the one that you want to use
  3. Click outside the window to save the changes

Shortcuts

You can use the shortcuts to make the most of the CodeGPT Chat feature. Here are some of the most useful shortcuts:

Shortcuts

Make the most of CodeGPT Chat and experience a new level of productivity in your coding endeavors.