Skip to content

Cue

Cue is an intelligent programming tool, which supports auto completion, multi-line edits, predicted edits, jump to edits, smart import, and smart rename.

Features

Tab-Cue

The Tab-Cue module offers the following features: auto completion, multi-line edits, predicted edits, and jump to edits.

Auto completion

Understand the existing code in the current file and automatically continue writing the relevant code.

Multi-line edits

By perceiving the context, the AI can provide suggested edits for multiple lines of code.

In the following example, after editing the function's description, the AI displays the related multiple lines of code and the suggested edits.

Predicted edits

By analyzing recent code changes, browsing history, Linter errors, and other information, and combining this with the content of the current project, the AI can predict the edits that you may do in the future.

In the following example, four parallel fields named id, name, price, and quantity are defined in the code. When the first letter of the id field is changed to uppercase, the AI will recognize this edit and prompt the user to also change the first letters of name, price, and quantity to uppercase.

Jump to edits

When you edit the code (such as changing a function or field name), the AI will automatically guide you to other locations related to that edit.

In the following example, after changing the interface name from Product to Products, other instances of the Product interface in the editor will display the label "Jump Here", prompting you to tab to jump to these locations and make edits.

Smart Import (Beta)

For Python, TypeScript, and Golang projects, Cue automatically detects and imports the necessary dependencies. Press the Tab key once to jump to where imports are needed, and press the Tab key again to import dependencies automatically.

Smart Rename (Beta)

For Python, TypeScript, and Golang projects, after renaming a variable or function, Cue identifies all related references and prompts you to update them. Press the Tab key once to navigate through each location that requires renaming, and press the Tab key again to complete renaming automatically.

UI

The automatically completed code is displayed in gray text within the editor, and a green icon will appear on the left side to prompt you.

When a suggested edit involves multiple lines of code, the editor displays the change in a diff format, and a yellow icon will appear on the left side to prompt you.

When prompting you to jump to an edit, the text "Jump Here" will appear near the location of the to-be-edited code, and a purple icon will appear on the left side of the corresponding line of code. Pressing the Tab key will take you to that location.

Toggle

Go to the IDE's settings center, under the Tab section of the General settings panel, toggle the Tab-Cue, Smart Import, or Smart Rename switch on or off.

For managing the Tab-Cue module, you can also hover your mouse over the Tab text in the status bar at the bottom right of the IDE, then toggle the Cue switch on or off.

Snooze

You can let Tab-Cue snooze for a certain period.

  1. In the bottom-right corner of IDE, hover the mouse onto Tab
  2. In the Snooze section, click the Set button
  3. Select the duration to snooze Tab-Cue for, then click the Start button

Tab-Cue is snoozed, and the "Tab" text is changed to "Tab Snoozed" at the bottom right. You can cancel the snooze at any time.

Keyboard shortcuts

  • Press the Tab key to jump to the locations where edits are required
  • Press the Tab key to accept a complete suggested edit at once, or use the Ctrl / Command + → key binding to accept a suggested edit word by word
  • Press the Escape key to reject a suggested edit, or simply continue coding to ignore it

Your Ultimate AI-Powered IDE Learning Guide