Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Snek AI Code CompletionNew to Visual Studio Code? Get it now.
Snek AI Code Completion

Snek AI Code Completion

Mels

| (0) | Free
Intelligent inline code completion powered by Snek LSP. Get AI-powered suggestions as you type with context-aware completions for Python, JavaScript, TypeScript, Rust, Go, C/C++, and Java.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snek AI Code Completion

Intelligent inline code completion powered by Snek LSP. Get AI-powered suggestions as you type with context-aware completions for multiple programming languages.

Features

  • AI-Powered Inline Completions - Get intelligent code suggestions as you type as ghost text
  • Multi-Language Support - Works with Python, JavaScript, TypeScript, Rust, Go, C/C++, Java
  • Context-Aware - Understands your codebase and coding patterns
  • Optimized Debouncing - Smart 300ms delay prevents excessive API calls
  • Real-Time Status - Status bar indicator shows completion state

Configuration

API key.

Setting Your API Key

Option 1: VS Code Settings (Recommended)

  1. Open VS Code Settings (Cmd/Ctrl + ,)
  2. Search for "Snek"
  3. Set Snek Lsp: Api Key to your API key

Option 2: Settings JSON

Add to your .vscode/settings.json:

{
  "snekLsp.apiKey": "sk-your-api-key-here"
}

Usage

Getting Started

  1. Configure your API key (see Configuration above)
  2. Open any supported file (.py, .js, .ts, .rs, .go, .c, .cpp, .java)
  3. Start typing code, wait
  4. Press Tab to accept the suggestion, or continue typing to ignore

Supported Languages

  • Python (.py)
  • JavaScript (.js)
  • TypeScript (.ts)
  • Rust (.rs)
  • Go (.go)
  • C (.c)
  • C++ (.cpp)
  • Java (.java)

Status Bar Indicators

The extension shows its status in the bottom-right corner:

  • Snek: Starting... - Extension is initializing
  • Snek: Ready - Ready to provide completions
  • Snek: Thinking... - Generating completion from AI
  • Snek: Error - Error occurred (hover for details)
  • Snek: No API Key - API key not configured (click to open settings)
  • Snek: Binary not found - Extension binary missing

How It Works

User types → Wait → Request completion → AI generates → Ghost text appears

Troubleshooting

"No API Key" Error

Solution: Configure your API key in VS Code settings:

  1. Open Settings (Cmd/Ctrl + ,)
  2. Search for "snekLsp.apiKey"
  3. Enter your API key
  4. Reload window

"Binary not found" Error

Solution: The extension should include a bundled snek binary. If you see this error:

  1. Verify the VSIX was installed correctly
  2. Try reinstalling the extension

No Suggestions Appearing

Solutions:

  1. Check the status bar - it should show "Snek: Ready" when idle
  2. Verify your API key is valid
  3. Ensure you're editing a supported file type
  4. Check the Output panel (View → Output → Snek Language Server) for errors

Completions Are Slow

This is normal - AI completions typically take 500-2000ms depending on:

  • Network latency
  • API response time
  • Complexity of the code context
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft