TronCode IDE User Guide
TronCode is an AI-powered intelligent code editor with a built-in AI assistant, enabling you to efficiently complete code generation, optimization, debugging, and other tasks right in your familiar editor environment.
Download & Install
Windows Platform
- System Requirements: Windows 10 or later
- Installation: Download the
.exefile, double-click it, and follow the installation wizard
macOS Platform
- System Requirements: macOS 10.15 or later
- Installation:
- Extract the downloaded
.zipfile - Drag the TronCode app to the Applications folder
- On first launch, go to "System Settings → Privacy & Security" and click "Open Anyway"
- Extract the downloaded
TronCode Key Registration
Registration Link
Visit the official page: TronCode Platform, and register/log in using your phone number and verification code.
Registration Steps
Step 1: Visit the Registration Page
- Open your browser and visit the Platform Login Page
- Click the "Login" button
- Enter your phone number and log in/register with a verification code
Step 2: Apply for API Key
- After logging in, go to the "API Key Management" page
- Click the "Create API Key" button
- Enter a Key name (for easy management)
- Click "Create" to finish
Step 3: Save Your API Key
Using Your Key
Configure API Key
Configure via Settings UI
- Open the TronCode application
- In the TRONIC CHAT panel on the right, enter your created API Key and save
Key Management
View Key Status
- You can view the current Key status in the settings panel
- Displayed information includes: validity period, remaining quota, permission level
Update Key
- When the Key is about to expire, the system will notify you in advance
- Visit the official website account page to apply for a new Key
- Update the Key in settings
Key Security Tips
- Do not share your API Key with others
- Rotate your API Key regularly
- If you discover a Key leak, immediately delete it on the official website and apply for a new one
TronCode Main Features
1. Intelligent Code Generation
- Feature: Generate high-quality code from natural language descriptions
- Supported Languages: Python, JavaScript, Java, C++, Go, Rust, and other mainstream programming languages
- How to Use: Describe your requirements in the input box, select the target language, and review the generated code
2. Code Optimization & Refactoring
- Feature: Analyze existing code and provide optimization suggestions
- Key Capabilities: Performance optimization, code style unification, security vulnerability detection, best practice recommendations
3. Code Explanation & Documentation
- Feature: Generate clear explanations and documentation for complex code
- Output Formats: Detailed function/class descriptions, parameter and return value documentation, usage examples, Markdown-formatted documents
4. Error Diagnosis & Fixes
- Feature: Quickly locate and fix code errors
- Supported Error Types: Syntax errors, logic errors, runtime errors, performance issues
TronCode Usage Guide
Section 1: Chatting with TronCode
How to Chat with TronCode
Key tip: Simply type what you want in English or Chinese — no special commands needed.
Good prompt examples:
Create a new file named utils.py and add a function called add that takes two numbers and returns their sum
In the file @src/components/Button.tsx, change the button color to blue
Key factors for effective prompts:
- Be specific: "Fix the bug in
calculateTotalthat returns incorrect results" is better than "Fix the code" - Use @ mentions: Use
@filenameto 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
- 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 handles tasks
Common Mistakes to Avoid
| Instead of this... | Try this |
|---|---|
| "Fix the code" | "Fix the bug in calculateTotal that returns incorrect results" |
| Assuming TronCode knows the 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 |
Section 2: Usage Modes
Modes in TronCode are specially designed agents that adjust the assistant's behavior based on the current task.
Switching Modes
Four ways to switch:
- Dropdown menu: Click the selector on the left side of the chat input box
- Slash commands: Type
/architect,/ask,/debug, or/code - Keyboard shortcut:
⌘+.(macOS) /Ctrl+.(Windows/Linux) to cycle through modes - Accept suggestion: Click TronCode's mode-switch suggestion
Built-in Modes
| Mode | Description | Tool Access | Best For |
|---|---|---|---|
| Code (default) | Skilled software engineer | Full access to all tools | Writing code, implementing features, general development |
| Ask | Knowledgeable technical assistant, no codebase modifications | Read, browser, mcp only | Code explanation, concept exploration, technical learning |
| Architect | Technical leader and planner | Read, browser, mcp, and limited edit (markdown only) | System design, high-level planning, architecture discussions |
| Debug | Systematic troubleshooting expert | Full access to all tools | Tracking bugs, diagnosing issues |
| Orchestrator | Strategic workflow coordinator | Limited access for task coordination | Breaking complex projects into subtasks |
Custom Modes
Create your own specialized assistants by defining tool access permissions, file permissions, and behavior instructions. Custom modes are useful for enforcing team standards or creating purpose-specific assistants.
Section 3: Context Mentions
Context mentions are a powerful way to reference files, folders, problems, and Git commits using the @ symbol, providing TronCode with specific information about your project.
Mention Types
| Mention Type | Format | Description |
|---|---|---|
| File | @/path/to/file.ts | Include file contents in the request context |
| Folder | @/path/to/folder/ | Provide directory structure in tree format |
| Problems | @problems | Include diagnostics from the VS Code Problems panel |
| Terminal | @terminal | Include recent terminal commands and output |
| Git Commit | @a1b2c3d | Reference a specific commit by hash |
| Git Changes | @git-changes | Show uncommitted changes |
| URL | @https://example.com | Import website content |
How to Use Mentions
- Type
@in the chat input box to trigger the suggestion dropdown - Continue typing to filter suggestions, or navigate with arrow keys
- Press Enter or click to select
- Combine multiple mentions in a request: "Fix the
@problemsin@/src/component.ts"
FAQ
Q: What if my API Key quota runs out?
A: Check your quota usage on the official website account page, and upgrade your plan or wait for quota reset as needed.
Q: How is generated code quality ensured?
A: TronCode uses advanced AI models. We recommend that you: carefully review generated code, conduct thorough testing, and adjust as needed for your project requirements.
Q: Does TronCode support offline use?
A: TronCode requires a network connection to access AI services. Fully offline use is not supported at this time.
Q: How do I get technical support?
A: Email support: support@linkwo.com
Contact Us
- Official Website: https://www.troncode.cn
- Technical Support: support@linkwo.com
- Business Cooperation: business@linkwo.com