Skip to content

How to Configure AI Settings in Trae IDE

Trae provides various AI settings to customize your development experience. Here's how to manage them:


Accessing AI Settings

  1. Click the profile icon in the top right corner of Trae
  2. Select Settings from the dropdown menu
  3. From the left navigation bar, select Trae AI

Available Settings

AI Chat Language

Configure the language used for AI chat interactions:

  • Auto: Responds in the language used in your question. Falls back to previous conversation language or Trae's display language if unclear
  • 中文: Sets Chinese as default response language
  • English: Sets English as default response language

Code Index Management

Trae AI can build a code index for your project to provide more accurate contextual responses when using #Workspace or #Folder commands.

Note: Without a complete index, using these commands may result in incomplete context and answers. The Reference section will indicate if indexing is in progress or not built.

Available operations:

  1. Start Building

    • Automatic for projects with ≤5,000 files
    • Manual start required for larger projects
  2. Cancel Building

    • Stop index building if exceptions occur
  3. Rebuild

    • Restart previous build attempt
  4. Clear Index

    • Remove existing code index

AI Chat Shortcuts

  1. Click Go to Settings in the Shortcut Settings section to open the Keyboard Shortcuts window
  2. Customize AI chat keyboard shortcuts to match your preferences
  3. For detailed information, refer to "Shortcut settings"