Skip to content

Cue

Cue is a feature that provides intelligent code suggestions and completions as you type. It helps you write code faster and more accurately by predicting what you're likely to type next.

How does Cue work?

Cue analyzes your code context and provides real-time suggestions based on:

  • Current code context
  • Variable names and types
  • Function signatures
  • Common coding patterns
  • Project-specific conventions

Prerequisites

  • VS Code version 1.93 or later
  • Trae Plugin installed and activated
  • Active internet connection for AI-powered suggestions

Enable Cue

Cue is enabled by default when you install the Trae Plugin. You can verify it's working by:

  1. Opening any code file in VS Code
  2. Starting to type code
  3. Looking for intelligent suggestions that appear as you type

Using Cue

Basic Usage

  1. Start typing: As you type code, Cue will automatically provide suggestions
  2. Accept suggestions: Press Tab or Enter to accept a suggestion
  3. Navigate suggestions: Use arrow keys to navigate through multiple suggestions
  4. Dismiss suggestions: Press Escape to dismiss the suggestion popup

Advanced Features

Context-aware suggestions: Cue understands your code context and provides relevant suggestions based on:

  • Variable types and scope
  • Function parameters
  • Import statements
  • Project structure

Multi-line completions: Cue can suggest entire code blocks, including:

  • Function implementations
  • Class definitions
  • Loop structures
  • Conditional statements

Smart imports: Cue can automatically suggest and add import statements when you use external libraries or modules.

Configuration

You can customize Cue behavior through VS Code settings:

  1. Open VS Code settings (Ctrl+, on Windows/Linux, Cmd+, on macOS)
  2. Search for "Trae Cue"
  3. Adjust settings such as:
    • Suggestion delay
    • Maximum number of suggestions
    • Enable/disable specific suggestion types

Supported Languages

Cue supports intelligent suggestions for all major programming languages, including:

  • JavaScript/TypeScript
  • Python
  • Java
  • C/C++
  • C#
  • Go
  • Rust
  • PHP
  • Ruby
  • And many more

Tips for Better Suggestions

  1. Write descriptive variable names: This helps Cue understand your intent
  2. Add comments: Comments provide context that improves suggestions
  3. Use consistent coding style: This helps Cue learn your patterns
  4. Keep functions focused: Smaller, focused functions get better suggestions

Troubleshooting

If Cue suggestions aren't appearing:

  1. Check internet connection: Cue requires an active connection
  2. Verify plugin status: Ensure Trae Plugin is active in VS Code
  3. Restart VS Code: Sometimes a restart resolves temporary issues
  4. Check file type: Ensure you're working with a supported file type

For additional support, refer to the Support documentation.

Your Ultimate AI-Powered IDE Learning Guide