Build Your First Project
Create files, write code, run commands, and use AI tools to build your first working project in Kodezi Code.
Building your first project in Kodezi Code is simple and beginner‑friendly. This page walks you through creating project files, writing code, testing it, and using AI tools to improve it as you go.
Create Your Project Structure
Start by setting up the basic files and folders your project needs.
- Open the File Explorer on the left.
- Create a new project folder (for example:
my-project). - Inside the folder, add your first file such as:
main.jsapp.pyindex.ts- or anything your project requires.
- Click on the file to open it in the editor.
Your workspace is now ready for coding.
Write Your First Code
Begin typing your code in the editor. Here are some examples you can try:
JavaScript Example:
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet("Kodezi"));Python Example:
def greet(name):
return f"Hello, {name}!"
print(greet("Kodezi"))All changes are auto‑saved, so you never have to worry about losing work.
Improve Code Using AI Tools
Kodezi Code includes powerful AI features that can enhance your code instantly.
- Highlight the function or code block you want to improve.
- Open the AI Tools Panel on the right.
- Choose an action such as:
- Debug to fix errors
- Optimize to improve structure or performance
- Explain to understand what the code does
- Generate to add new logic
- Apply the suggested changes with one click.
This is a fast way to upgrade your project as you write it.
Run Commands in the Terminal
If your project requires testing or running scripts, use the terminal built into the IDE.
- Open the Terminal at the bottom of the screen.
- Run commands such as:
npm installpython main.pynode index.js- or any command your project needs.
- View output and logs in real time.
The terminal is fully integrated with your project files, making the development workflow smooth and efficient.
Generate Documentation (Optional)
You can also create documentation for your code:
- Select a function or file.
- Open the AI Tools.
- Choose Generate Docs to create structured comments or documentation.
This is helpful for keeping your project clean and readable.
What’s Next?
Your first project is now set up and running. Continue to the Credits & Usage section to learn how credits work when using AI features in Kodezi Code.