RefactorAI
RefactorAI is a Visual Studio Code extension that allows engineers and developers to refactor, debug, and explain their code using natural language processing. With RefactorAI, you can quickly generate AI-generated responses that can help you improve your code quality and solve complex programming problems.
Features
- Refactor: Refactor your code using AI-generated suggestions.
- Debug: Debug your code using AI-generated suggestions.
- Explain: Get an AI-generated explanation of your code.
- Custom: Add a custom prompt.
Installation
To install RefactorAI, follow these steps:
- Open Visual Studio Code.
- Click on the Extensions icon in the sidebar (or press
Ctrl+Shift+X
).
- Search for "RefactorAI" in the search bar.
- Click on the "Install" button next to RefactorAI.
- Wait for the installation to complete.
Alternatively, you can download the extension from the Visual Studio Code Marketplace and install it manually.
Usage
To use RefactorAI, follow these steps:
- Type "Activate RefactorAI" into the command palette (or press
Ctrl+Shift+P
and search for "Activate RefactorAI").
- Paste your code into the input box that appears.
- Press either the "Refactor", "Debug", or "Explain" button.
- Wait for the AI-generated response to appear.
In the future, you'll be able to use keybindings or add RefactorAI to your toolbar for quicker access.
Roadmap
RefactorAI is a new tool, and evolves every week. Here's a rough roadmap:
[ ] Allow users to sign in with Gitub
[x] Enable streaming mode so responses come in word-by-word and not all at once
[ ] Allow users to use their own API keys
[ ] Allow users to select different AI models for the response
[ ] Select code, then select RefactorAI function from context menu or press keybind, and receive AI response in side pane webview
[ ] Access file system (in restricted mode) to read Typescript declaration files, custom types, and typed packages
[ ] Access file system (in restricted mode) to allow AI to gain context on how codebase works
Requirements
RefactorAI requires an internet connection. In the future, it will require a valid API key to use.
Extension Settings
RefactorAI does not have any configurable settings at this time.
Known Issues
There are no known issues with RefactorAI at this time. If you encounter any issues, please report them to this feedback form
Release Notes
0.2.7
- Add idempotence to prompt buttons
- Removed Herobrine
0.2.6
- Fix API bug
- Remove console.logs in devtools
0.2.3
- Add settings to allow users to opt in/out of new features
0.2.2
- Laid groundwork for streaming functionality (coming soon!)
- Added feedback form button (please use it!)
- Made AI more thorough
- Removed unnecessary dialog boxes
- Fixed API issues
- Fixed broken custom prompt button
- Added new features to roadmap
License
RefactorAI is licensed under the MIT License. See the LICENSE file for more information.