Templates
Instantly improve code performance, security, and readability with AI suggestions.
Templates help you improve your code quality instantly with AI-powered analysis. Get automated suggestions for performance optimization, security fixes, style improvements, and code cleanup without leaving your editor. Each template provides actionable feedback and ready-to-use code improvements that you can review and apply with a single click.
Available templates
Performance Check: Optimize code performance and efficiency
Security Check: Identify and fix security vulnerabilities
Style Check: Apply coding style and formatting standards
Improve Readability: Enhance code clarity and organization
Clean Code: Remove debugging and logging statements

How to use templates
Prerequisites
Select the code you want to analyze in your editor before using any template.
Method 1: Click Templates button
Select code in your editor
Click the Templates button at the bottom of the Bito extension panel

Choose the desired template from the dropdown menu

Method 2: Open context menu
Select code in your editor
Right-click in the editor window
Hover over "Bito AI" in the context menu
Select the desired template from the submenu

Method 3: Using slash /
command in Bito chat box
/
command in Bito chat boxSelect code in your editor
Type
/
at the start of the Bito chat boxChoose the desired template from the dropdown menu

Type some text after the slash
/
to filter templates by name

Method 4: Command Palette (VS Code)
Select code in your editor
Go to View → Command Palette (or press Ctrl+Shift+P / Cmd+Shift+P)
Type "bito" to see available templates
Select the desired template from the list

Applying code suggestions
When templates provide code improvements, you'll see an Apply button above the suggested code snippet.
Click the Apply button to open the diff view

Review the changes highlighted in the diff:
Red lines show code to be removed
Green lines show code to be added
Choose your action:
Accept - Apply the suggested changes to your code
Undo - Reject the changes and keep your original code

Tips
Select meaningful code blocks for better analysis results
Templates work best with complete functions or logical code segments
Review suggested changes before applying them to your codebase
Verify that the changes don't break existing functionality
Use multiple templates on the same code for comprehensive analysis
Use the diff view to understand exactly what changes will be made
Last updated