Skip to main content

Using @ symbol

Use the @ symbol to attach files or access the entire codebase through the coding assistant’s chat.

Overview

The @ trigger automates file handling and codebase interactions within the chat feature. It simplifies tasks such as attaching files, inspecting existing code, and extending functionality.

Prerequisites

  • Access to Coding Assistant’s chat feature.
  • Knowledge of the necessary file paths or the codebase structure.

1. Attaching Files

Attaching Files.gif

Steps

1
Type @ in the chat input box or click the @ context button below the chat input box, then select File.


2
Wait for the file suggestion pop-up to appear.


3
Enter the file path. A list of matching files will display.


4
Press Tab or Enter to attach the highlighted file. The attached file then appears in the chat.

Use Cases

  • Attaching a file as context to the chat.
  • Refactoring code for a specific file.
  • Fixing errors.
  • Understanding the logic.

2. Interacting with the Codebase

Use @codebase to interact with every file in the repository.

Codebase.gif

Steps

1
Type @ in the chat input box followed by codebase.


2

Wait for the file suggestion pop-up to appear.


3
Type your task or question in the chat.

Use Cases

- For a New Developer Onboarding
  1. Type @codebase in the chat.
  2. Follow it with a question or a request to explain a specific function or flow.
info

Coding Assistant references the entire repository to provide context-based answers.

- Modifying or Extending Functionality
  1. Type @codebase followed by details about your change request.
  2. Include information about the new feature or revisions you want. The assistant suggests updates based on your existing code.
- Creating New Modules and Tasks
  1. Type @codebase along with your new module requirements.
  2. Specify the module name and its purpose.
    The assistant outlines the files needed for the new functionality.