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
Tabto 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:- VS Code
- Visual Studio
- Open VS Code settings in Code > Settings > Settings (macOS) or File > Preferences > Settings (Windows and Linux). You can also press
Command+,(macOS) orCtrl+,(Windows and Linux). - Search for
Poolside. - Find the Inline Code Completion toggle.
- Select or clear the checkbox to turn code completion on or off.
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
Write clear function signatures
Write clear function signatures
Start with descriptive function names and parameter types. The more context you provide, the better the suggestions.
Keep files focused
Keep files focused
Code completion works best in files with clear, single responsibilities. Overly complex files may produce less relevant suggestions.
Accept partially
Accept partially
You don’t have to accept entire suggestions. Accept only what is useful and continue prompting to refine.
Use with chat
Use with chat
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