Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AskGPT for VSCodeNew to Visual Studio Code? Get it now.
AskGPT for VSCode

AskGPT for VSCode

CloudCLI.io

|
4,375 installs
| (1) | Free
Use ChatGPT/OpenAI with your VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

askGPT extension for VSCode

askGPT for VSCode

This extension use official OpenAI API and its documentation, go to https://cloudcli.io to get full documentations and instructions. Make sure you have your OpenAI API key added at https://platform.openai.com/account/api-keys

Usage

  • Write a comment ask for something you need chatGPT build for (e.g //create Terraform template that create an Azure Virtual machine)
  • Select that comment (highlight it in VSCode)
  • Right click ⤍ AskGPT: Show me code
  • Wait & enjoys 😎

Hot Keys

To use keyboard, you must selected your text in the VSCode editor then press one of key combination bellow:

  • Ctrl/Cmd + F2...................Go to Settings
  • Ctrl/Cmd + F3...................English grammar check
  • Ctrl/Cmd + F4...................Explain code block
  • Ctrl/Cmd + Enter............Search for code by chatGPT
  • Ctrl/Cmd + Shift + F...Refactor code

Installation

Open your VSCode ⤍ Extensions and search for AskGPT for VSCode then Install. Installation

Press cmd + shift + p and type askGPT> Set API Key to open to setup OpenAI API key. Installation

Write your code request under a comment, then Right Click + Action ask

Wait until result appears ask

It took few seconds to get code suggested then your comment will be replaced by code.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft