Skip to content

Restore deleted content in autocomplete documentation file #8523

@TyDunn

Description

@TyDunn

Summary

The documentation file docs/autocomplete/how-to-use-it.mdx has been accidentally cleared. All content has been replaced with "Haha. I deleted everything." This critical documentation explains how to use Continue's autocomplete feature with keyboard shortcuts.

Steps to Reproduce

  1. Check the current state of docs/autocomplete/how-to-use-it.mdx
  2. Compare with git history (commit 1704df4f1)

Expected Behavior

The file should contain comprehensive documentation about:

  • How to use AI code autocomplete in Continue
  • Accepting full suggestions with Tab
  • Rejecting suggestions with Esc
  • Partially accepting suggestions with cmd/ctrl + →
  • Forcing suggestions in VS Code with cmd/ctrl + alt + space
  • Proper frontmatter with title, description, and icon metadata
  • An embedded GIF demonstrating the feature

Actual Behavior

The file currently contains only: "Haha. I deleted everything."

Environment Details

  • File: docs/autocomplete/how-to-use-it.mdx
  • Last valid commit: 1704df4f1 (feat: GEO updates for docs feat: GEO updates for docs #7083)
  • File location: User-facing documentation directory
  • Impact: High - Users cannot access critical autocomplete usage instructions

Required Criteria

  • Documentation content must be restored to its previous state
  • All keyboard shortcuts must be accurately documented
  • Frontmatter metadata must be preserved
  • Image reference must be intact
  • File formatting must match documentation standards

Proposed Solution

Plan to Restore the Documentation

Phase 1: Content Recovery

  1. Retrieve the original content from git history (commit 1704df4f1)
  2. Verify the content integrity and completeness
  3. Ensure all metadata fields are present in the frontmatter

Phase 2: Restoration

  1. Restore the complete original content to docs/autocomplete/how-to-use-it.mdx
  2. Verify the image path /images/autocomplete-9d4e3f7658d3e65b8e8b20f2de939675.gif is valid
  3. Confirm the file structure matches other documentation files

Phase 3: Validation

  1. Run documentation build to ensure no syntax errors
  2. Verify the page renders correctly in the documentation site
  3. Check that all links and references work properly
  4. Ensure keyboard shortcuts are accurately represented

Phase 4: Prevention

  1. Review git workflow to understand how this deletion occurred
  2. Consider adding documentation file protection rules
  3. Implement pre-commit hooks to detect large content deletions in documentation
  4. Add .continue/prompts/commit.md to ensure proper commit workflows

Original Content to Restore

---
title: "Autocomplete"
sidebarTitle: "How To Use AI Autocomplete"
icon: "circle-question"
description: "Learn how to use Continue's AI-powered code autocomplete feature with keyboard shortcuts for accepting, rejecting, or partially accepting inline suggestions as you type"
---

<Frame>
  <img src="/images/autocomplete-9d4e3f7658d3e65b8e8b20f2de939675.gif" />
</Frame>

## How to Use AI Code Autocomplete in Continue

Autocomplete provides inline code suggestions as you type. To enable it, simply click the "Continue" button in the status bar at the bottom right of your IDE or ensure the "Enable Tab Autocomplete" option is checked in your IDE settings.

### Accepting a full suggestion

Accept a full suggestion by pressing \`Tab\`

### Rejecting a full suggestion

Reject a full suggestion with \`Esc\`

### Partially accepting a suggestion

For more granular control, use \`cmd/ctrl\` + \`\` to accept parts of the suggestion word-by-word.

### Forcing a suggestion (VS Code)

If you want to trigger a suggestion immediately without waiting, or if you've dismissed a suggestion and want a new one, you can force it by using the keyboard shortcut **\`cmd/ctrl\` + \`alt\` + \`space\`**.

Labels

area:docs, area:autocomplete, kind:bug, priority:high, area:onboarding

Additional Context

This appears to be an accidental deletion. The file is critical for user onboarding and understanding of the autocomplete feature. Quick restoration is recommended.


Generated with Continue

Co-Authored-By: Continue [email protected]

Metadata

Metadata

Labels

area:autocompleteRelates to the auto complete featurearea:docsRelates to documentationarea:onboardingkind:bugIndicates an unexpected problem or unintended behaviorpriority:highIndicates high priority

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions