What You’ll Learn
- Compose effective prompts for code generation
- Use @-mentions to provide context
- Leverage Desktop-specific features for parallel development
- Review generated code with Code Review
Prompt Composition
Effective Prompt Structure
- Simple Tasks
- Complex Tasks
- Best Practices
For straightforward code generation:Example:
Iterative Development
Build features incrementally:Using @-Mentions
@-mentions provide context by referencing specific files, folders, or symbols.Syntax
| Mention | Scope | Example |
|---|---|---|
@filename | Single file | @userService.ts |
@folder/ | Directory | @src/components/ |
When to Use @-Mentions
- Explicit Context
- Multiple Files
- Folder Scope
Desktop-Specific Code Writing
Parallel Feature Development
- Independent Features
- Bug Fix + Feature
- Experimental
Build unrelated features simultaneously in separate workspaces:Example: Build an authentication system in one workspace while another agent builds the dashboard UI in a separate workspace.
Create First Workspace
Click New Workspace in the Top Bar to create an isolated workspace for your first feature
Start a Task
In the input box, describe what you want to build and send your message to start a new task
Plan Mode for Complex Features
For complex code generation:- Press
Shift+TaborCtrl+.to switch to Plan Mode - Describe the feature you want to build
- Review the plan Verdent creates
- Refine with follow-up questions
- Switch to Agent Mode to execute the plan
Reviewing Generated Code
After Verdent generates code, use Code Review for quality assurance:View Code Review
After Verdent completes changes, the Code Review panel appears inline within the chat
Address Critical Issues
Review Must Fix items first, these are security, performance, or stability issues
| Category | Focus |
|---|---|
| Security | Vulnerability scanning, injection risks, credential exposure |
| Accessibility | Accessibility compliance and best practices |
| Performance | Algorithmic complexity, resource usage |
| Call-chain Impact | Downstream effects on dependent code |
FAQs
How do I get more accurate code generation?
How do I get more accurate code generation?
- Be specific - Include exact requirements
- Provide context - Use @-mentions for relevant files
- Specify patterns - Reference existing code as examples
- Iterate - Build incrementally rather than all at once
Should I use Plan Mode for all code writing?
Should I use Plan Mode for all code writing?
Use Plan Mode for:
- Complex multi-file changes
- Unfamiliar patterns or codebases
- When you want to review approach first
- Simple, straightforward tasks
- Well-understood changes
- Quick iterations
Can I work on multiple features at the same time?
Can I work on multiple features at the same time?
Yes. Create separate workspaces for each feature by clicking New Workspace in the Top Bar. Each workspace has its own agent working in isolation.
How do I undo changes Verdent made?
How do I undo changes Verdent made?
You don’t need to delete the entire workspace to undo changes. You have several options:
- Rollback: Hover over any message in the chat and click Rollback to this point to revert to an earlier state.
- Use Source Control: Open Source Control (
Ctrl+Shift+G/Cmd+Shift+G) to view changed files and revert specific changes. - Delete workspace: Click Delete Workspace in the Workspace Bar to discard all changes in that workspace. Your base workspace remains unaffected.
Does Code Review use credits?
Does Code Review use credits?
Yes. Code reviews consume credits based on the amount of code analyzed. Disable auto-review in Settings → Chat if you want to save credits.
Can Verdent generate tests for my code?
Can Verdent generate tests for my code?
Yes. Ask Verdent to write tests by describing what to test and referencing files with @-mentions (e.g., “Write tests for @userService.ts”).