Roo-Code offers many ways to customize how the assistant works. This guide explains the different settings you can adjust to make Roo-Code work best for you.
These settings control basic behaviors:
- Language: Choose which language Roo should speak and think in
- Line Numbers: Show or hide line numbers in code snippets
- Markdown Formatting: Enable rich formatting in responses
- Auto-generate File Names: Let Roo create descriptive file names
These settings control what Roo can do without asking permission:
- Allowed Commands: Commands Roo can run without confirmation
- Auto-approve Operations: Whether Roo needs permission for certain actions
- Always Review Changes: Whether to show changes before applying them
- Security Level: Overall security strictness
These are cutting-edge features you can try:
- Experimental Diff Strategy: Alternative way for Roo to make code changes
- Search and Replace Tool: Tool for finding and replacing text
- Insert Content Tool: Tool for adding new content at specific lines
- Power Steering: Enhanced role definition adherence
The easiest way to change settings:
- Click the Settings gear icon in the Roo sidebar
- Browse through the available settings
- Make your changes
- Settings are automatically saved
For more advanced configuration:
- Open VSCode Settings (File > Preferences > Settings)
- Search for "Roo-Code" or "roo-cline"
- Adjust settings through the VSCode interface
For precise control and project-specific settings:
// User settings.json or .vscode/settings.json
{
"roo-cline.setting.name": value
}| Setting | Purpose |
|---|---|
| Theme | Interface appearance (VSCode, Light, Dark) |
| Font | Text display font |
| Font Size | Text display size |
| Show Line Numbers | Display line numbers in code blocks |
| Setting | Purpose |
|---|---|
| Auto-approve Operations | Skip confirmation for certain actions |
| Ask Before Applying Changes | Preview changes before making them |
| Confirm Dangerous Operations | Extra confirmation for risky actions |
| Show Diffs | Preview changes before applying them |
| Setting | Purpose |
|---|---|
| Cache Results | Store results to improve speed |
| Optimize for Large Files | Better handling of large files |
| Prefetch Resources | Load resources ahead of time |
| Setting | Purpose |
|---|---|
| API Provider | Choose your preferred AI provider |
| Model | Select which model to use |
| Temperature | Control randomness in responses (0.0-1.0) |
| Max Tokens | Limit response length |
You can have different settings for different projects:
- Create a
.vscode/settings.jsonfile in your project - Add Roo-Code settings prefixed with "roo-cline."
- These settings will only apply when working in that project
Example for a project that needs TypeScript focus:
{
"roo-cline.preferredLanguage": "TypeScript",
"roo-cline.allowedCommands": [
"npm test",
"npm run build"
]
}{
"roo-cline.experiments.powerSteering": true,
"roo-cline.showDiffs": true,
"roo-cline.autoApproveOperations": "none",
"roo-cline.confirmDangerousOperations": true
}This configuration ensures Roo follows guidelines strictly and shows you changes before making them.
{
"roo-cline.experiments.experimentalDiffStrategy": true,
"roo-cline.experiments.insertContent": true,
"roo-cline.allowedCommands": ["npm run dev", "npm test"],
"roo-cline.autoApproveOperations": "safe"
}This setup enables powerful tools and reduces interruptions for common tasks.
{
"roo-cline.markdownFormatting": true,
"roo-cline.showLineNumbers": true,
"roo-cline.autoApproveOperations": "none",
"roo-cline.verboseExplanations": true
}These settings optimize for clarity and explanation rather than speed.
- Start Simple: Begin with default settings and adjust as needed
- Security First: Be cautious about auto-approving operations
- Project-Specific: Use different settings for different projects
- Regular Review: Periodically check your settings as your needs change
- Experimental Features: Try new features in non-critical projects first
If you encounter issues with settings:
- Settings Not Applied: Try restarting VSCode
- Conflicting Settings: Project settings override global ones; check for conflicts
- Reset to Defaults: Use the "Reset to Defaults" button in settings
- Settings Location: Check both global and project-specific settings files
By customizing Roo-Code's settings to match your workflow, you can make the assistant more helpful and efficient for your specific needs.