Optimize your code using OpenAI's ChatGPT! ChatGPTCodeOptimizer is a Visual Studio Code extension that helps you get code optimization suggestions from ChatGPT.
- Optimize selected code snippets
- Choose between full code optimization or only essential changes with comments
- Easy configuration of ChatGPT API Key
- 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.
- 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.
- Visual Studio Code 1.76.0 or later
- A valid ChatGPT API Key
If you encounter any issues or need help, please open a GitHub issue on the project repository.
Contributions are welcome! Feel free to submit pull requests for bug fixes or new features.