By the end of this lesson, you will:
:information_source: Trae IDE is a smart code editor that uses artificial intelligence (AI) to help you write better code faster. Think of it as a helpful coding assistant that:
- Suggests code as you type
- Explains complicated code in simple words
- Finds and fixes mistakes automatically
- Helps you learn while you build projects
Trae combines a regular code editor with AI superpowers. This means you can write code normally, but also get help from AI whenever you need it!
:bulb: AI-assisted coding is like having a smart tutor sitting next to you, helping you code better and learn faster!
:computer: Getting Started with Trae
:emoji: Installation Steps
Follow these simple steps to install Trae on your computer:
Visit the Trae Website: Go to https://www.trae.ai/download
Download Trae for Your Computer:
- If you use Windows -> Download the Windows version
- If you use Mac -> Download the macOS version
- Click the "Download for your platform" button
Install the App:
- Windows users: Double-click the .exe file and follow the steps
- Mac users: Open the .dmg file, then drag Trae to your Applications folder
Open Trae: Find Trae in your Applications folder (Mac) or Start menu (Windows)
Sign In or Create Account: When Trae opens, sign in or create a new account
Set Up Your Preferences: Choose your favorite theme and settings
Start Coding! You're ready to build amazing projects! note Make sure to ask an adult for help if you need permission to install software on your computer.
Live Server lets you see your web page in a browser and watch it update automatically as you code!
Open Trae on your computer
Find the Extension Store: Look at the left side panel and click the extensions icon
Install Live Server:
Find your HTML file in the file explorer
Right-click on your HTML file
Select "Open with Live Server"
Your browser opens automatically showing your web page at http://localhost:5500
To stop the server: Click "Port:5500" in the bottom bar
:bulb: Every time you save your file (Ctrl+S or Cmd+S), your web page refreshes automatically. It's like magic!
:bulb: Pro Tips for Using Trae
:video_game: General Usage Tips
- Save Your Work: Press Ctrl + S (Windows) or Command + S (Mac) to:
- Save your code
- Refresh your browser automatically
- Open AI Chat: Look at the top right corner and click the 3rd box to chat with AI
:emoji: Working with AI
Choose Your AI Model: Select 'claude-3.5-sonnet' for the best help
Apply AI Suggestions:
- Click "Apply/Accept" to preview changes
- Click "Accept" to keep the changes forever
See Your Updates: Sometimes refresh your browser to see new changes
Learn from AI: Scroll down in the chat to read explanations about what changed
Try Different Prompts: Ask AI in different ways to get better results note Remember: AI is here to help you learn! Don't be afraid to ask questions or try new things.
You've learned how to:
Trae IDE makes coding fun and easy by combining a powerful editor with AI assistance. You can write code, see it work instantly, and get help whenever you need it!
Try these prompts with AI in Trae:
:bulb: Tip Start with simple prompts and gradually try more complex ones as you get comfortable with AI coding!