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
- 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 😎
To use keyboard, you must selected your text in the VSCode editor then press one of key combination bellow:
Ctrl/Cmd + F2
...................Go to SettingsCtrl/Cmd + F3
...................English grammar checkCtrl/Cmd + F4
...................Explain code blockCtrl/Cmd + Enter
............Search for code by chatGPTCtrl/Cmd + Shift + F
...Refactor code
Open your VSCode ⤍ Extensions and search for AskGPT for VSCode
then Install
.
Press cmd + shift + p
and type askGPT> Set API Key
to open to setup OpenAI API key.
Write your code request under a comment, then Right Click + Action
It took few seconds to get code suggested then your comment will be replaced by code.