Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LowCodeGPTNew to Visual Studio Code? Get it now.
LowCodeGPT

LowCodeGPT

furuCRM

|
3,223 installs
| (2) | Free
Introduction about furuCRM We partner with Salesforce's large ISV and SI vendors to provide expert services in application development, customization, collaboration development, and platform. Leveraging our deep expertise in the Salesforce, Heroku, AWS, and GCP platforms, we provide flexible, scalab
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChatGPT Extension for VSCode

This VS Code extension uses OpenAI's ChatGPT and unofficial ChatGPT API to generate natural language responses to your questions directly within the editor.

Marketplace


Refactoring selected code using chatGPT

Features

  • Ask general questions or use code snippets from the editor to query ChatGPT via an input box in the sidebar
  • Use context menu shortcuts to run selected code.
  • Right click on a code selection and run one of the context menu shortcuts
  • View ChatGPT's responses in a panel next to the editor.
  • Ask follow-up questions to the response and maintain conversation context.
  • Insert code snippets into the active editor by clicking on the AI's response.

Installation

To use this extension, install it from the VSCode marketplace or download and install .vsix file from Releases.

  1. After the installation is complete, you will need to add your ChatGPT session token to the extension settings in VSCode. To do this, open the Settings panel by going to the Code menu and selecting Preferences, then Settings.
  2. In the search bar, type ChatGPT to filter the settings list.
  3. In the ChatGPT section, enter your session token in the SESSION_TOKEN field.

After completing these steps, the extension should be ready to use.

Obtaining the session token

To use this extension, you will need to authenticate with a valid session token from ChatGPT. To get a session token:

  1. Go to https://chat.openai.com/chat and log in or sign up.
  2. Open the developer tools in your browser.
  3. Go to the Application tab and open the Cookies section.
  4. Copy the value for __Secure-next-auth.session-token and save it.

Once you have obtained a session token, you can configure the extension to use it as described in the previous section.

Using the Extension

To 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).

Writing new code using chatGPT

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.

Refactoring selected code using chatGPT

To insert a code snippet from the AI's response into the editor, simply click on the code block in the panel. The code will be automatically inserted at the cursor position in the active editor.

chatGPT explaining selected code

You can select some code in the editor, right click on it and choose one of the following from the context menu:

Commands

  • Ask ChatGPT: will provide a prompt for you to enter any query
  • ChatGPT: Explain selection: will explain what the selected code does
  • ChatGPT: Refactor selection: will try to refactor the selected code
  • ChatGPT: Find problems: looks for problems/errors in the selected code, fixes and explains them
  • ChatGPT: Optimize selection: tries to optimize the selected code

Ask ChatGPT is also available when nothing is selected. For the other four commands, you can customize the exact prompt that will be sent to the AI by editing the extension settings in VSCode Preferences.

Because ChatGPT is a conversational AI, you can ask follow-up questions to the response. The conversation context is maintained between queries, so you can ask multiple questions in a row. To reset the conversation context, click ctrl+shift+p and select ChatGPT: Reset Conversation.


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.

Setting a background image url in extension

To set a background image URL in your Visual Studio Code extension, you will first need to modify your settings.json file.

Open your extension folder Navigate to your .vscode folder Open your settings.json file In this file, add the following code:

"chatgpt.background.view": "your-image-url-here" Replace your-image-url-here with the URL of the image you want to use as your background.

To reload VSCode after making changes to this file, you can either close and reopen the application.

Credits

  • This wouldn't be possible without OpenAI's ChatGPT
  • The extension makes use of chatgpt-api (by Ali Gençay), which uses ChatGPT unofficial API in order to login and communicate with it.
  • It is built on top of gencay/vscode-chatgpt, which started this project
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft