Generate Code from TODOs
Overview
This command transforms TODO comments in your codebase into actual, working code. It analyzes the context and requirements specified in TODO comments to generate appropriate implementations.
Why Use It
Code generation from TODOs accelerates development by converting planning notes into functional implementations. This command bridges the gap between the planning and development phases, helping developers quickly implement outlined features without starting from scratch. It ensures consistent implementation of planned functionality while saving valuable development time.
Common Use Cases
- You have TODO comments outlining needed functionality or improvements.
- You are transitioning from the planning phase to active development.
- You need to implement multiple planned features consistently.
Prerequisites
- Install and enable WiseGPT in VS Code.
- Open the file you want to work on.
- Ensure TODO comments are clear and descriptive.
Steps
Select Command
Right-click the selected code, then select WiseGPT and choose Generate Code from TODOs.
You can also click on the light bulb (💡) icon next to the selected code, then select Generate Code from TODOs.
Review Code
Review the changes to ensure they meet your requirements and apply the changes to your codebase.
Troubleshooting
What if the generated tests don't cover all scenarios?
You can request additional test cases or specific scenarios through the Chat interface.
What makes a good TODO comment for code generation?
Clear, specific descriptions of required functionality along with any relevant constraints or requirements.