Skip to main content

Overview

Poolside’s code completion feature provides intelligent, context-aware code suggestions as you type directly in your editor. Suggestions appear inline as dimmed text that you can accept or ignore, helping you write code faster and with fewer errors.

How it works

Code completion activates automatically as you write code:
  • Inline suggestions: Completions appear in gray text at your cursor position
  • Accept: Press Tab to accept the suggestion
  • Ignore: Continue typing to dismiss the suggestion
  • Context-aware: Suggestions use your current file, recently viewed files, and your codebase

Common use cases

  • Function bodies: Start writing a function signature and get suggested implementation
  • Boilerplate code: Quickly generate common patterns like loops, conditionals, and error handling
  • Import statements: Autocomplete module imports and dependencies
  • Documentation: Generate docstrings and comments
  • Code patterns: Get suggestions that match your project’s coding style

Turning code completion on or off

You can turn code completion on or off from the Poolside settings in your IDE:
  1. Open VS Code settings in Code > Settings > Settings (macOS) or File > Preferences > Settings (Windows and Linux). You can also press Command+, (macOS) or Ctrl+, (Windows and Linux).
  2. Search for Poolside.
  3. Find the Inline Code Completion toggle.
  4. Select or clear the checkbox to turn code completion on or off.
To avoid conflicts, turn off Copilot, IntelliCode line completions, or any other tool that offers a similar but conflicting feature.

Advanced configuration

Switching completion models

To optimize for speed or quality, you can change which AI model powers your code completions by using the Poolside: Switch Completion Model command. The available models vary depending on your Poolside deployment.

Tips for best results

Start with descriptive function names and parameter types. The more context you provide, the better the suggestions.
Code completion works best in files with clear, single responsibilities. Overly complex files may produce less relevant suggestions.
You don’t have to accept entire suggestions. Accept only what is useful and continue prompting to refine.
For complex implementations, use chat mode to plan the approach, then use code completion to speed up the writing.

Troubleshooting

If code completion isn’t working as expected:
  • No suggestions appearing: Check that you turned on code completion in Poolside settings
  • Slow suggestions: Try switching to a faster completion model
  • Irrelevant suggestions: Ensure your file has clear context and isn’t too large or complex
  • Still having issues: See Troubleshooting Guide