Tab Completions
Write code faster with intelligent, context-aware completions that span multiple lines
Tab completions in Alex Sidebar go beyond simple autocomplete. They understand your code’s context and can suggest entire blocks and complete functions based on what you’re writing.
To enable Multiline suggestions, which is currently an alpha feature, go to:
- Settings
- Features & Keybindings
- Enable Multiline Suggestions
Because multline suggestions requires screen access, you will need to enable screen recording access to AlexSideBar in your system preferences.
Multiline tab (alpha) is available from version 3.3
How Tab Works
As you type, Alex Sidebar analyzes your code and suggests completions that appear as completion text. Press Tab to accept the suggestion and watch as it intelligently fills in multiple lines at once.
To disable interferece with Xcode, please disable Apple’s predictive code completion in Xcode → Settings → Text Editing → Editing → uncheck “Use code completion”.
Key Features
Context-Aware Suggestions
Understands your entire file and recent edits to provide relevant completions
Multi-Line Edits
Suggests complete code blocks, not just single lines
Project Context
Considers other files in your project when making suggestions
Fast & Responsive
Low-latency suggestions that keep up with your typing speed
Using Tab Completions
Basic Usage
Start typing
Write your code normally. Alex Sidebar watches for opportunities to help.
See suggestions
Completion text appears showing what Alex suggests. This could be:
- Completing the current line
- Adding multiple lines to finish a function
Accept or reject
- Tab: Accept the entire suggestion
- Esc: Dismiss the suggestion
- Keep typing to ignore and get new suggestions
Advanced Features
Learning from Context
Tab uses your recent edits and previous tab acceptances to provide more relevant suggestions.
Contextual Understanding
Tab completions consider:
- Your recent edits and what you’re working on
- The structure of your current function or class
- Import statements and available APIs
- Your coding style and naming conventions
- Xcode’s build errors and warnings
Tab remembers your previous accepts across different files. When you accept a suggestion in one file, it learns from that pattern and applies similar suggestions in other files you work on.
Configuration
Enable/Disable Tab
Toggle Tab completions in Settings → Features & Keybindings → Enable Autocomplete under the “Editor Features” section.
Tab completions work best when codebase indexing is enabled. This helps Alex understand your project structure and provide more accurate suggestions.
You can also quickly enable/disable it in the system menubar when Alex is focused (Autocomplete section).
Troubleshooting
Suggestions not appearing?
- Check that Tab completions are enabled in settings
- Try manually triggering with Tab key