Option/Alt + X. When a completion appears:
- Press
Tabto accept the suggestion - Press any other key to dismiss it
Code completion suggestion in action
Types of Code Completions
Onuro offers two distinct types of code completions depending on how you trigger them:Tap Completion
Quick, automatic code suggestions Simply pressOption/Alt + X briefly to trigger automatic code completion. The AI analyzes your current context and provides an immediate suggestion based on what it thinks you’re trying to write.
Hold Completion (Contextual)
Interactive completion with custom input Press and holdOption/Alt + X to open the contextual code completion dialog. This allows you to:
- Provide specific context about what you want to implement
- Give the AI additional information to generate more targeted suggestions
- Request completions for complex logic that requires explanation
Contextual code completion dialog for hold completion
Choosing Between Tap and Hold
| Use Case | Best Option |
|---|---|
| Quick variable names or simple logic | Tap - Fast and automatic |
| Complex functions or specific requirements | Hold - Provides context input |
| Standard patterns the AI can predict | Tap - No input needed |
| Custom logic that needs explanation | Hold - Allows for detailed context |