ChatGPT Extension for VSCodeEnglish | 中文
This Visual Studio Code extension allows you to use the ChatGPT API to generate natural language responses from OpenAI's ChatGPT to your questions, right within the editor. SponsorsMarketplaceFeatures
InstallationTo use this extension, install it from the VSCode marketplace or download and install Or set it up by following these steps:
After completing these steps, the extension should be ready to use. Using the ExtensionTo use the extension, open a text editor in Visual Studio Code and open the ChatGPT panel by clicking on the ChatGPT icon in the sidebar. This will open a panel with an input field where you can enter your prompt or question. By clicking enter, it will be sent to ChatGPT. Its response will be displayed below the input field in the sidebar (note that it may take some time for it to be calculated).When the generation is over, a relevant question will be suggested and you can ask a question directly by clicking on that question. You can also select a code snippet in the editor and then enter a prompt in the side panel, or right-click and select "Ask ChatGPT". The selected code will be automatically appended to your query when it is sent to the AI. This can be useful for generating code snippets or getting explanations for specific pieces of code. Select the code in the editor, the left input box can be searched by "/" (or enter) keywords for code-related Q&A. You can select some code in the editor, right click on it and choose one of the following from the context menu: Commands:
Too much information in the chat screen, you can click on the top right menu to choose to clear it Please note that this extension is currently a proof of concept and may have some limitations or bugs. We welcome feedback and contributions to improve the extension. Credits
|