Use Refraction to detect bugs, add debug statements, create documentation, separate hardcoded literals, refactor code, style check, generate unit tests, and add types, all within your editor.
Hey Product Hunt folks!
I'm excited to share Refraction for VS Code, an extension that helps you improve and refactor code using AI, without leaving your editor. It uses the Refraction (https://www.refraction.dev/) API to bring the following commands to VS Code:
๐ Detect bugs: Optimize your code to use better, more modern practices.
๐ฌ Add debug statements: Add debug statements to your code to make it easier to understand.
๐ Create documentation: Add inline documentation to your code to make it easier to understand.
๐ Separate hardcoded literals: Move any hardcoded strings or numbers in your code into variables.
๐ซ Refactor code: Optimize your code to use better, more modern practices.
๐จ Style check: Check your code for style issues and suggest fixes.
๐งช Generate unit tests: Turn source code into unit tests for your framework of choice.
๐ Add types: Add types to your code to make it easier to understand.
Check it out and let us know what you think! Have a favorite framework or language that isn't listed? Let me know!
@haydenbleasel Wow, Refraction for VS Code sounds like a lifesaver for developers! Can't wait to try out those AI-powered commands and streamline my workflow. Great job, team! ๐๐
This is amazing! Refraction for VS Code has made coding so much easier for me. I love how I can now refactor my code, detect bugs, and add debug statements on the spot. Highly recommend it!
Orate