CodeContinue - AI Code Completion for Sublime Text
=====================================================

Welcome! CodeContinue is now installed and ready to use.

SETUP
-----
On your first use, you'll be prompted to configure:
1. Your API endpoint (OpenAI-compatible or Anthropic)
   Default: http://localhost:8000/v1/chat/completions
2. Your model name (auto-detected or entered manually)
3. Your API key (optional, for cloud providers)

You can also configure anytime via Command Palette:
  Ctrl+Shift+P >> "CodeContinue: Configure"

Or manually:
  Preferences >> Package Settings >> CodeContinue >> Settings


DEFAULT KEYBINDING (not implemented, you have to set it up once)
---------------------------------------------------------------
By default, no keybindings are enabled to prevent conflicts with your existing setup.

To set up your keybinding:
1. Open the Key Bindings split view:
   Preferences > Package Settings > CodeContinue > Key Bindings
   (or Ctrl+Shift+P >> "Preferences: CodeContinue Key Bindings")
2. Copy your preferred keybinding block from the LEFT side (default template).
3. Paste it into the RIGHT side (your User keymap file) inside [ ... ].
4. Save the file (Ctrl+S on Windows/Linux, Cmd+S on macOS).

Option 1: Ctrl+Enter to Suggest, Tab to Accept (Recommended):
[
    { "keys": ["ctrl+enter"], "command": "code_continue_suggest" },
    {
        "keys": ["tab"],
        "command": "code_continue_accept",
        "context": [{ "key": "code_continue_visible", "operator": "equal", "operand": true }]
    },
    {
        "keys": ["escape"],
        "command": "code_continue_dismiss",
        "context": [{ "key": "code_continue_visible", "operator": "equal", "operand": true }]
    }
]

Option 2: Single Key (Ctrl+Enter for BOTH Suggest AND Accept):
[
    {
        "keys": ["ctrl+enter"],
        "command": "code_continue_accept",
        "context": [{ "key": "code_continue_visible", "operator": "equal", "operand": true }]
    },
    { "keys": ["ctrl+enter"], "command": "code_continue_suggest" }
]


QUICK START
-----------
1. Open a Python, C++, or JavaScript file
2. Press your suggest shortcut (e.g. Ctrl+Enter) to request a code completion
3. Press your accept key (e.g. Tab or Ctrl+Enter) to accept the suggestion (gray inline text)
4. For multi-line suggestions, press the accept key multiple times
5. (Optional) Enable "auto_suggest_on_enter": true in settings if you want auto-suggestions on Enter


ENDPOINTS & MODELS
------------------
Local Server (e.g., Ollama, LM Studio, vLLM):
  Endpoint: http://localhost:8000/v1/chat/completions
  Model: Your local model name

OpenAI:
  Endpoint: https://api.openai.com/v1/chat/completions

Anthropic:
  Endpoint: https://api.anthropic.com/v1/messages

For more details, see the README file.

Need help? Check the documentation at:
https://github.com/kXborg/codeContinue
