TronCode User Manual
Download
Windows Platform
- Download Link: Windows Version Download
- System Requirements: Windows 10 or higher
- Installation Method: Double-click the downloaded
.exe
file and follow the installation wizard to complete the installation
Mac Platform
- Download Link: Mac Version Download
- System Requirements: macOS 10.15 or higher
- Installation Method:
- Double-click the downloaded
.zip
file to extract it. - Drag the TronCode application to the Applications folder
- You may need to allow it to run in System Preferences when running for the first time
- Double-click the downloaded
TronCode Key Registration
Registration Link
Visit the official page: TronCode Registration
Registration Steps
Step 1: Visit Registration Page
- Open your browser and visit Registration
- Click the "Login" button in the bottom left corner
- Enter your phone number and log in/register with verification code
Step 2: Apply for API Key
- Open your browser and visit API Key Apply
- Click the "Create API Key" button
- Enter the API Key name (for management purposes)
- Click the "Create" button
Step 3: Save API Key
Key Usage
Configure API Key
Method One: Configure through Settings Interface
- Open the TronCode application
- In the TRONIC CHAT panel on the right, enter the created API Key and save
Key Management
View Key Status
- You can view the current Key status in the settings interface
- Displayed information includes: validity period, remaining quota, permission level
Update Key
- When the Key is about to expire, the system will remind you in advance
- Visit the official website account page to apply for a new Key
- Update to the new Key in settings
Key Security Recommendations
- Do not share your API Key with others
- Regularly change your API Key
- If you discover a Key leak, immediately delete it on the official website and apply for a new key
TronCode Main Features
Main Features
1. Intelligent Code Generation
- Feature Description: Generate high-quality code based on natural language descriptions
- Supported Languages: Python, JavaScript, Java, C++, Go, Rust and other mainstream programming languages
- Usage Method:
- Describe your requirements in the input box
- Select the target programming language
- Click the "Generate Code" button
- Review and use the generated code
2. Code Optimization and Refactoring
- Feature Description: Analyze existing code and provide optimization suggestions
- Main Features:
- Performance optimization suggestions
- Code style unification
- Security vulnerability detection
- Best practice recommendations
3. Code Explanation and Documentation Generation
- Feature Description: Generate clear explanations and documentation for complex code
- Output Formats:
- Detailed descriptions of functions/classes
- Parameter and return value descriptions
- Usage examples
- Markdown format documentation
4. Error Diagnosis and Fixing
- Feature Description: Quickly locate and fix code errors
- Supported Error Types:
- Syntax errors
- Logic errors
- Runtime errors
- Performance issues
TronCode Usage Introduction
Section One: Chatting with TronCode
How to Talk to TronCode
Key Advice: Just type what you want in Chinese/English. No special commands needed.
Good conversation examples:
Create a new file called utils.py and add a function called add that takes two numbers as parameters and returns their sum
In file @src/components/Button.tsx, change the button color to blue
Find all instances of variable oldValue in @/src/App.js and replace them with newValue
What makes requests effective:
- Be specific - "Fix the bug in
calculateTotal
that returns incorrect results" beats "fix the code" - Use @ mentions - Use
@filename
to directly reference files and code - One task at a time - Break complex work into manageable steps
- Include examples - Show the style or format you want
Chat Interface
Basic Controls:
- Chat History - View your conversation and task history
- Input Field - Type your requests here (press Enter to send)
- Action Buttons - Approve or reject TronCode's proposed changes
- Plus Button - Start a new task session
- Mode Selector - Choose how TronCode should handle your task
Quick Interactions
Click Actions:
- File paths → Open file
- URLs → Open in browser
- Messages → Expand/collapse details
- Code blocks → Copy button appears
Status Signals:
- Spinning → TronCode is working
- Red → Error occurred
- Green → Success
Common Mistakes to Avoid
Instead of this... | Try this |
---|---|
"Fix the code" | "Fix the bug in calculateTotal that returns incorrect results" |
Assuming TronCode knows context | Use @ to reference specific files |
Multiple unrelated tasks | Submit one focused request at a time |
Too much technical jargon | Clear, direct language works best |
Why this matters: TronCode works best when you communicate like you're talking to a teammate who needs clear guidance.
Section Two: Usage Modes
Modes in TronCode are specialized agents that adjust the assistant's behavior based on your current task. Each mode provides different capabilities, expertise, and access permissions to help you achieve specific goals.
Why Use Different Modes?
- Task Specialization: Get precise help tailored to what you need right now
- Safety Controls: Prevent accidental file modifications when focusing on planning or learning
- Focused Interactions: Receive responses optimized for your current activity
- Workflow Optimization: Seamlessly switch between planning, implementing, debugging, and learning
Switching Modes
Four ways to switch modes:
- Dropdown Menu: Click the selector to the left of the chat input box
- Slash Commands: Type
/architect
,/ask
,/debug
, or/code
in the chat input box - Toggle Command/Keyboard Shortcut: Use the keyboard shortcut for your operating system. Each press cycles through available modes in order, returning to the first mode after reaching the end.
Operating System | Shortcut |
---|---|
macOS | ⌘ + . |
Windows | Ctrl + . |
Linux | Ctrl + . |
- Accept Suggestions: Click on mode switching suggestions provided by TronCode when appropriate
Built-in Modes
Code Mode (Default)
Aspect | Details |
---|---|
Description | A skilled software engineer proficient in programming languages, design patterns, and best practices |
Tool Access | Full access to all tool groups: read , edit , browser , command , mcp |
Best For | Writing code, implementing features, debugging, and general development |
Special Features | No tool restrictions—complete flexibility for all coding tasks |
Ask Mode
Aspect | Details |
---|---|
Description | A knowledgeable technical assistant focused on answering questions without modifying the codebase |
Tool Access | Limited access: only read , browser , mcp (cannot edit files or run commands) |
Best For | Code explanation, concept exploration, and technical learning |
Special Features | Optimized for providing informative responses without modifying the project |
Architect Mode
Aspect | Details |
---|---|
Description | An experienced technical leader and planner who helps design systems and create implementation plans |
Tool Access | Access to read , browser , mcp and restricted edit (markdown files only) |
Best For | System design, high-level planning, and architectural discussions |
Special Features | Follows a structured approach from information gathering to detailed planning |
Debug Mode
Aspect | Details |
---|---|
Description | An expert problem solver skilled in systematic troubleshooting and diagnosis |
Tool Access | Full access to all tool groups: read , edit , browser , command , mcp |
Best For | Tracking errors, diagnosing problems, and solving complex issues |
Special Features | Uses a systematic approach to analyze, narrow down possibilities, and fix problems |
Orchestrator Mode
Aspect | Details |
---|---|
Description | A project manager and coordinator for complex, multi-step tasks requiring different specialties |
Tool Access | Full access to all tool groups: read , edit , browser , command , mcp |
Best For | Large projects, coordinating multiple tasks, and managing complex workflows |
Special Features | Can create subtasks and coordinate work across different domains |
Mode Selection Tips
If you want to... | Use this mode |
---|---|
Write or modify code | Code |
Understand existing code | Ask |
Plan a new feature | Architect |
Fix a bug or error | Debug |
Manage a complex project | Orchestrator |
Section Three: Context Mentions
Context mentions allow you to reference specific files, folders, or code elements in your conversations with TronCode. This helps provide precise context and ensures TronCode understands exactly what you're working with.
File Mentions
Basic Syntax: @filename
or @path/to/file
Examples:
@src/components/Button.tsx
@package.json
@README.md
@utils/helpers.js
What happens when you mention a file:
- TronCode automatically reads the file content
- The file becomes part of the conversation context
- You can reference specific parts of the file in your requests
Folder Mentions
Basic Syntax: @folder/
or @path/to/folder/
Examples:
@src/
@components/
@tests/unit/
What happens when you mention a folder:
- TronCode scans the folder structure
- Provides an overview of files and subfolders
- Can analyze patterns and relationships within the folder
Code Symbol Mentions
Basic Syntax: @filename:symbol
Examples:
@utils.js:calculateTotal
@Button.tsx:ButtonProps
@api.py:UserService
What this does:
- References specific functions, classes, or types
- Provides focused context on particular code elements
- Useful for targeted modifications or explanations
Multiple Mentions
You can mention multiple files or elements in a single request:
Compare the implementation in @src/utils/old-helper.js with @src/utils/new-helper.js and suggest improvements
Update @components/Header.tsx and @components/Footer.tsx to use the new theme from @styles/theme.css
Best Practices for Mentions
Do | Don't |
---|---|
Use specific file paths | Use vague references like "that file" |
Mention relevant files for context | Mention too many unrelated files |
Use consistent path formats | Mix different path styles |
Reference specific functions when needed | Assume TronCode knows which function you mean |
Common Mention Patterns
For bug fixes:
There's an error in @src/api/users.js in the getUserById function. It's not handling null responses correctly.
For feature additions:
Add a new export button to @components/DataTable.tsx that uses the utility functions from @utils/export.js
For refactoring:
Refactor @services/auth.js to use the new authentication pattern shown in @examples/modern-auth.js
For style updates:
Update the button styles in @components/Button.css to match the design system in @styles/design-tokens.css
Frequently Asked Questions
Account and Registration
Q1: How to register for TronCode?
A: Visit https://chat.yantronic.com, click the "Login" button, enter your phone number and complete registration with verification code.
Q2: Forgot API Key?
A: API Keys are only displayed once and cannot be retrieved. If lost, you need to delete the old key and create a new one at https://chat.yantronic.com/open/api_keys.
Q3: API Key not working?
A: Please check:
- Whether the API Key is entered correctly (no extra spaces)
- Whether the API Key has expired
- Whether the account has sufficient quota
- Whether the network connection is normal
Installation and Setup
Q4: Installation failed?
A: Common solutions:
- Windows: Run as administrator, temporarily disable antivirus software
- Mac: Allow the app to run in System Preferences → Security & Privacy
- Ensure sufficient disk space
- Check if system version meets requirements
Q5: Cannot start application?
A: Try the following steps:
- Restart the computer
- Check if antivirus software is blocking it
- Reinstall the application
- Check system logs for error messages
Usage Issues
Q6: Slow response?
A: Possible causes and solutions:
- Network issues: Check network connection, try switching networks
- Server load: Try again during off-peak hours
- Request complexity: Break down complex requests into smaller parts
- Quota limitations: Check if account quota is sufficient
Q7: Code quality issues?
A: Improve code quality with these tips:
- Provide clear requirements: Describe functionality and constraints in detail
- Specify programming language and framework
- Provide context: Include relevant existing code
- Iterative refinement: Provide feedback and request improvements
Q8: Cannot understand generated code?
A: Request explanations:
- Ask TronCode to explain the code logic
- Request comments to be added to the code
- Ask for step-by-step breakdown of complex algorithms
- Request simpler alternative implementations
Technical Support
Q9: Data security?
A: TronCode takes data security seriously:
- All communications use HTTPS encryption
- Code and data are not stored permanently
- Strict access controls and permission management
- Regular security audits and updates
Q10: Supported programming languages?
A: TronCode supports mainstream programming languages including:
- Web Development: JavaScript, TypeScript, HTML, CSS, React, Vue, Angular
- Backend Development: Python, Java, C#, Go, Rust, PHP, Ruby
- Mobile Development: Swift, Kotlin, Dart (Flutter), React Native
- Data Science: Python, R, SQL, Jupyter Notebooks
- System Programming: C, C++, Rust, Go
- Other: Shell scripts, configuration files, documentation formats
Q11: Usage limitations?
A: Current limitations include:
- Request frequency: Rate limiting based on account type
- Code length: Single requests have maximum character limits
- File operations: Cannot directly modify files on your local system
- Network access: Cannot access external APIs or databases
Q12: How to get better results?
A: Best practices:
- Clear descriptions: Provide detailed and specific requirements
- Context information: Include relevant background and constraints
- Examples: Provide input/output examples when possible
- Iterative approach: Start simple and gradually add complexity
- Feedback: Provide feedback on generated results for improvement
Contact Us
Official Website
Technical Support
If you encounter any issues during use, please contact our technical support team:
- Support Email: support@yantronic.com
- Online Help: Visit the official website help center
- User Community: Join our user discussion group for experience sharing
Feedback and Suggestions
We welcome your feedback and suggestions to help us continuously improve TronCode:
- Feature Requests: Submit new feature suggestions
- Bug Reports: Report any issues you encounter
- User Experience: Share your usage experience and improvement suggestions
Thank you for choosing TronCode!
We are committed to providing you with the best AI programming assistance experience. If you have any questions or need help, please don't hesitate to contact us.