TronCode TronCode IDE Docs

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 .exe file, double-click it, and follow the installation wizard
Download for Windows

macOS Platform

  • System Requirements: macOS 10.15 or later
  • Installation:
    1. Extract the downloaded .zip file
    2. Drag the TronCode app to the Applications folder
    3. On first launch, go to "System Settings → Privacy & Security" and click "Open Anyway"
Download for macOS (Apple Silicon) Download for macOS (Intel)

TronCode Key Registration

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

  1. Open your browser and visit the Platform Login Page
  2. Click the "Login" button
  3. Enter your phone number and log in/register with a verification code

Step 2: Apply for API Key

  1. After logging in, go to the "API Key Management" page
  2. Click the "Create API Key" button
  3. Enter a Key name (for easy management)
  4. Click "Create" to finish

Step 3: Save Your API Key

⚠️
Important: The API Key will only be displayed once. Make sure to copy and securely save it!

Using Your Key

Configure API Key

Configure via Settings UI

  1. Open the TronCode application
  2. 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

  1. When the Key is about to expire, the system will notify you in advance
  2. Visit the official website account page to apply for a new Key
  3. 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 calculateTotal that returns incorrect results" is better than "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

  • 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 contextUse @ to reference specific files
Multiple unrelated tasksSubmit one focused request at a time
Too much technical jargonClear, 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:

  1. Dropdown menu: Click the selector on the left side of the chat input box
  2. Slash commands: Type /architect, /ask, /debug, or /code
  3. Keyboard shortcut: ⌘+. (macOS) / Ctrl+. (Windows/Linux) to cycle through modes
  4. Accept suggestion: Click TronCode's mode-switch suggestion

Built-in Modes

ModeDescriptionTool AccessBest 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 TypeFormatDescription
File@/path/to/file.tsInclude file contents in the request context
Folder@/path/to/folder/Provide directory structure in tree format
Problems@problemsInclude diagnostics from the VS Code Problems panel
Terminal@terminalInclude recent terminal commands and output
Git Commit@a1b2c3dReference a specific commit by hash
Git Changes@git-changesShow uncommitted changes
URL@https://example.comImport website content

How to Use Mentions

  1. Type @ in the chat input box to trigger the suggestion dropdown
  2. Continue typing to filter suggestions, or navigate with arrow keys
  3. Press Enter or click to select
  4. Combine multiple mentions in a request: "Fix the @problems in @/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