CodeCanvas AI is a VS Code extension that helps with common development tasks such as turning Figma frames into React components, generating starter projects, explaining errors, and drafting tests.
Features
Figma to React
Converts a Figma file or frame into React + TypeScript components
Generates Tailwind CSS utility classes from layout and style data
Splits reusable top-level sections into separate component files
Writes output to src/components/<ComponentName>/
Project Structure Generator
Creates ready-to-edit starters for:
React + Vite
Next.js
Express
FastAPI
Supports custom AI-generated scaffolds from a free-form prompt
Offers post-create actions such as dependency install, git init, and opening the new folder
Debug Assistant
Explains selected errors in plain language
Uses surrounding code context for better suggestions
Opens the analysis in a side-by-side markdown view
Test Generator
Generates Jest-style tests for selected code or an entire file
Works with JavaScript and TypeScript selections
Reuses the configured OpenAI model and cache settings
Setup
Open the Command Palette.
Run CodeCanvas AI: Configure API Keys.
Save your OpenAI API key.
Optionally save a Figma access token for the Figma workflow.
Keys are stored with VS Code secret storage. They are not exposed as normal workspace settings.