Using Zed Editor with Igniter.js for AI-Powered Development
Zed is a high-performance, multiplayer code editor built for speed and efficiency. Its integrated AI features and first-class TypeScript support make it a powerful choice for developing Igniter.js applications. This guide explains how to provide Zed's AI with the right context to improve its accuracy and turn it into an Igniter.js expert.
What makes Zed particularly effective for Igniter.js is its automatic detection of context files, which simplifies the process of training its AI.
Method 1: Manual Context Setup for Existing Projects
If you're working on an existing project that wasn't created from an Igniter.js template, you can still train Zed's AI. This method teaches the AI about the core Igniter.js concepts and APIs by using our comprehensive documentation file.
Step 1: Get the Igniter.js Core Context
Our official llms.txt
file contains the entire Igniter.js documentation, making it the perfect training document for any AI code assistant.
Step 2: Provide Context to Zed's AI Chat
Copy the entire content from the llms.txt
file and paste it into Zed's AI chat panel at the beginning of your session. This gives the AI a strong foundation for understanding the Igniter.js.
Example Initial Prompt:
"You are an expert developer specializing in Igniter.js. Use the following text, which contains the entire framework documentation, as your primary source of knowledge: [PASTE THE COPIED CONTENT HERE]. All your future responses must be based on the best practices and patterns found in that document. Now, help me create a new controller."
Method 2: Use an Official Igniter.js Template (The Easy Way)
This is the highly recommended approach. All official Igniter.js project templates are designed to be "AI-Friendly" and work seamlessly with modern tools like the Zed editor.
When you create a project from one of our templates, it automatically includes a detailed AGENT.md
file in the root directory. Zed is intelligent enough to automatically detect and use AGENT.md
as a project-level instruction set for its AI.
This means that when you open an Igniter.js template project in Zed, the AI is already trained on your specific codebase's architecture and conventions with no additional setup required.
Recommended Project Templates
Our templates come ready with everything you need to start building, including the AI instructions that Zed will automatically use for code generation and analysis.