Code Refinement Actions lets you instantly improve, analyze, and document your code using Freddy AI Developer copilot. Each action is designed to help with specific tasks like refactoring, code explanation, and documentation generation with repsonses grounded in Freshworks platform context.
In this guide, you will learn the following:
- Available actions
- How to use Code Refinement Actions
Available Actions
Refactor: Improve your code structure while maintaining its functionality. Freddy AI analyzes your code snippet and suggests improvements based on refactoring patterns, Freshworks development best practices, and code maintainability principles.
Explain: Understand complex code segments with detailed explanations about code logic and functionality, program flow, and implementation details.
Review: Get detailed code reviews that analyze your code's functionality, security, and best practices, and platform-specific best practices using Freddy AI provides.
Generate Documentation: Create documentation for your code automatically
Generate Code Comments: Add clear inline comments to your code automatically with Freddy AI.
Security Check: Find potential security vulnerabilities, unsafe coding practices, API security concerns, etc in your code using Freddy AI.
How to use Code Refinement Actions
Follow these steps to use Code Refinement Actions :
- Select the code snippet you want to refine
- Right click and select any of the Freddy actions (refine, explain, review, etc)
- Review the response. If not satisfactory, refine the prompt and ask again
- Apply the code by copying, inserting or saving code to a new file
- Provide feedback (thumbs up/down or report issue) to help improve the copilot
Need some help?
Need assistance? Ask questions in our Developer Community.