Imagine an AI-powered tool just within your IDE that turns your ideas into code through natural language—our VS Code extension does precisely that. The Code4Me.ai extension not only aids in code generation and auto-debugging but also excels in generating unit tests and crafting quality documentation, boosting productivity and development speed by 10x for both novices and expert developers alike.
Stay in control and in the loop: Code4Me.ai not only generates code but also presents it just like a Git diff. This way, you can review, tweak, or directly accept the AI-crafted code, ensuring it perfectly aligns with what you want.
Installation guide
- The
.vsix
file forCode4Me.ai
is available in this GitHub repository. - You can either clone the repository or download it as a ZIP file.
- To clone, use:
git clone [Repository URL]
- Or download the ZIP file
- To clone, use:
- Launch Visual Studio Code on your computer.
-
Click on the Extensions icon in the Activity Bar on the side of the window.
-
In the Extensions view, click on the
...
(More Actions) button at the top right. -
Select
Install from VSIX...
from the dropdown menu.
- Navigate to where you cloned/downloaded the repo in the file dialog.
- Select the
.vsix
file and clickOpen
. - VS Code will now install the extension.
- You may need to reload VS Code to activate the extension.
- Click the
Reload
button if prompted, or restart VS Code.
- Check the Extensions view to ensure the extension is listed as installed.
- On the first use you'll be prompted to add your openai api key.
-
Grab the Current Code:
First, our tool looks at what you're working on. It takes the code from the open file in your editor. If the file is new and empty, that's okay too—our AI can handle that.
-
Your Instructions
Next, you tell the tool what you need. You can type this in a box at the bottom left of the AI Coding panel. We've also got some common tasks ready to go, like adding packages or making tests.
-
AI Does Its Thing (OpenAI Completions API)
Then, we send your instructions and the code to the AI. It starts working and keeps going until it's done writing the code you need.
-
You Check the Code
Finally, you get to see the new code next to your old one, just like when you look at changes in Git. If you like what you see, hit accept, and the new code gets added to your file. Simple as that!