The Chat GPT extension loads the Chat GPT web and integrates it with Visual Studio 2022.
It works with both FREE and Plus versions of Chat GPT web. No OpenAI tokens are required.
Send selected code from VS.NET to GPT
Send selected code from GPT to VS.NET
When the GPT "Copy code" button is clicked, the code is sent automatically to VS.NET
Buttons to automate code fixing, improve code and asking GPT to show complete code
Other code operations like commenting code, adding exception handling, creating unit tests, and several others
Configurable custom actions for GPT to apply to the code; these can be added, removed, changed, or reordered as needed
Download and install the extension
Go to the menu View -> Other Windows and select Chat GPT Extension
Log into Chat GPT
In VS.NET, go to extensions -> manage extensions, click on installed, select and remove the Chat GPT Extension
Close VS.NET to apply changes
Delete the directory %appdata%\..\Local\ChatGPTExtension
The "VS.NET to GPT" button copies the selected code from VS.NET to the GPT prompt area, preserving any existing data.
The "Fix Code in GPT" button copies the selected code from VS.NET to the GPT prompt area and asks GPT to fix it.
The "Improve Code in GPT" button copies the selected code from VS.NET to the GPT prompt area and asks GPT to improve it.
The "GPT to VS.NET" button copies the selected text from GPT and sends it to VS.NET.
The "Complete Code" button asks GPT to show full complete code when it is showing partial code only.
The "Enable Copy Code" switch, when enabled, automatically sends the code to VS.NET when the "Copy code" button in GPT is clicked.
The "Arrow" button opens a submenu with other code operations that GPT can perform.
The "Reload Chat GPT..." submenu tries to reload GPT in the internal browser.
The "Configure extension..." submenu opens the screen to configure the code action operations.
2.8 - Better code for Copy button handler to avoid breaking when GPT HTML changes
2.7 - Fix Copy Code button handler
2.6 - Fix AI prompt to add comments to the code
2.5 - Fix auto scroll to bottom for new GPT trained up to April 2023
2.4 - Fix Home, End, Shift-Home and Shift-End keys in GPT textbox prompt area.
2.3 - Automatically hiding WebView2 with GPT if tool windows from bottom of VS.NET are activated. For example, this will fix issues with GPT over Output window for example when autohide is active.
2.2 - Added new button "Complete Code" to ask GPT to show full complete code. Fixed issues with Shift-Home and Shift-End in GPT prompt textbox. Also added tooltips for help.
2.1 - Removed "Preview" from the extension.
2.0 - Added drag and drop support for reordering custom actions. Fixed issues detecting changes that need saving. A maximum of 20 custom actions can now be added.
1.7 - Custom actions can now be added, removed, edited, and reordered in a grid. The current GPT prompt will be cleared for custom actions to run. Note: Due to migration, existing customized actions from version 1.6 will be lost. We apologize for any inconvenience.
1.6 - Introduced configurable custom actions for GPT to apply to the code.
1.5 - GPT now receives the detected language name, when available, for better response accuracy.
1.4 - Fixed issues with the end and home keys inside the GPT prompt textbox. Added more actions to process code in the submenu.
1.3 - Initial release.
There are some known random issues with logging off from Chat GPT. If you encounter problems logging off, try pressing F12 and then trying again, or close VS.NET and delete the directory %appdata%\..\Local\ChatGPTExtension.
The extension is free to use but may not be cloned, modified, or sold in any manner.