home / skills / jeremylongshore / claude-code-plugins-plus-skills / cursor-tab-completion

This skill helps you master Cursor tab completion and AI code suggestions to accelerate coding with context-aware ghost text guidance.

npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill cursor-tab-completion

Review the files below or copy the command above to add this skill to your agents.

Files (5)
SKILL.md
1.7 KB
---
name: "cursor-tab-completion"
description: |
  Manage master Cursor tab completion and AI code suggestions. Triggers on "cursor completion",
  "cursor tab", "cursor suggestions", "cursor autocomplete", "cursor ghost text". Use when working with cursor tab completion functionality. Trigger with phrases like "cursor tab completion", "cursor completion", "cursor".
allowed-tools: "Read, Write, Edit, Bash(cmd:*)"
version: 1.0.0
license: MIT
author: "Jeremy Longshore <[email protected]>"
---

# Cursor Tab Completion

## Overview

This skill helps you master Cursor tab completion and AI code suggestions. It covers how completions work, acceptance techniques, context awareness, and configuration settings to optimize your coding flow with AI assistance.

## Prerequisites

- Cursor IDE with completions enabled
- Project with indexed codebase
- Understanding of ghost text interface
- Configured .cursorrules for project patterns

## Instructions

1. Start typing code in a file
2. Wait for ghost text to appear (gray suggestion)
3. Press Tab to accept full suggestion
4. Press Ctrl+Right to accept word by word
5. Press Esc to dismiss unwanted suggestions
6. Use Ctrl+Space to force trigger completion

## Output

- AI-generated code completions
- Pattern-aware suggestions
- Context-sensitive function bodies
- Consistent code style matching project

## Error Handling

See `{baseDir}/references/errors.md` for comprehensive error handling.

## Examples

See `{baseDir}/references/examples.md` for detailed examples.

## Resources

- [Tab Completion Guide](https://cursor.com/docs/completions)
- [Completion Settings](https://cursor.com/docs/settings)
- [Context for Better Completions](https://cursor.com/docs/context)

Overview

This skill helps you master Cursor tab completion and AI-driven code suggestions to speed up development and reduce context switching. It explains how completions appear, how to accept or reject them, and how to configure Cursor for pattern-aware, project-consistent suggestions. Use this skill to turn ghost text into reliable, editable code that matches your codebase style.

How this skill works

The skill inspects editor context, indexed project files, and configured .cursorrules to produce context-sensitive ghost text suggestions. Suggestions appear as gray inline completions; you can accept them fully with Tab, accept word-by-word with Ctrl+Right, force trigger with Ctrl+Space, or dismiss with Esc. It adapts to project patterns and coding style to generate function bodies, signatures, and small snippets that fit your current file.

When to use it

  • When you want faster code entry for common patterns or boilerplate
  • When editing functions and you need context-aware suggestions for bodies or signatures
  • During refactors to maintain consistent style across files
  • When onboarding into a new project with indexed codebase
  • When you need to iterate quickly on small implementation details

Best practices

  • Keep the project index up to date so suggestions reflect current code and types
  • Customize .cursorrules to prioritize patterns and imports specific to your repo
  • Use Tab for full acceptance and Ctrl+Right for controlled, incremental acceptance
  • Dismiss irrelevant suggestions with Esc and re-trigger with Ctrl+Space for alternatives
  • Review and modify generated code; completions speed drafting but still require human validation

Example use cases

  • Generate a function body that follows project naming and error-handling patterns
  • Auto-complete long import lists and keep them ordered per project rules
  • Fill in repetitive test scaffolding across multiple files with consistent style
  • Quickly stub API handlers or data models from existing schema and examples
  • Iteratively accept word-by-word when refining complex expressions or type annotations

FAQ

What keys accept or dismiss suggestions?

Press Tab to accept the full suggestion, Ctrl+Right to accept word-by-word, Esc to dismiss, and Ctrl+Space to force a completion.

How do I improve suggestion relevance?

Ensure the codebase is indexed, update .cursorrules for project patterns, and provide more surrounding context in the file before triggering completion.