Optimize your code using OpenAI's ChatGPT! ChatGPTCodeOptimizer is a Visual Studio Code extension that helps you get code optimization suggestions from ChatGPT.
Features
Optimize selected code snippets
Choose between full code optimization or only essential changes with comments
Easy configuration of ChatGPT API Key
Getting Started
Install the ChatGPTCodeOptimizer extension from Visual Studio Code Marketplace.
Set up your ChatGPT API Key:
Go to the extension settings by clicking the gear icon next to the extension in the Extensions sidebar or searching for "ChatGPTCodeOptimizer" in the settings search bar.
Enter your ChatGPT API Key in the "API Key" field.
Usage
Select the code snippet you want to optimize.
Right-click and choose "Optimize Code with ChatGPT" from the context menu, or use the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS) and search for "Optimize Code with ChatGPT".
Choose between full code optimization or only essential changes with comments.
ChatGPTCodeOptimizer will display the optimized code in a separate window.
Requirements
Visual Studio Code 1.76.0 or later
A valid ChatGPT API Key
Support
If you encounter any issues or need help, please open a GitHub issue on the project repository.
Contributing
Contributions are welcome! Feel free to submit pull requests for bug fixes or new features.