HOW TO USE CHATGPT ON VSCODE
Tags: chatgpt, ai, webdev, programming
Published: 2023-03-17 22:04:35


**What is ChatGPT?**

[ChatGPT](C:\Users\hp\Documents\openai.com) is an Artificial Intelligence chatbot that mimics human conversation. The dialogue format makes it possible for ChatGPT to answer follow-up questions, admit its mistakes, challenge incorrect premises, and reject inappropriate requests. It was designed by an AI research company, OpenAI, and launched on 30th November 2022. Its latest version, [ChatGPT-4](https://openai.com/research/gpt-4), was recently launched on March, 2023. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5sh4ucl7sycndkkztdl3.JPG)
**Features**
ChatGPT has been embellished with great features that makes it too good to be true. Elon Musk said, “ChatGPT is scary good. We are not far from dangerously strong AI”. Some of the features are;
•	It is very versatile in that it can be used for various tasks cutting through different works of life. It can write and debug computer programs, and compose music, letters, reports, resume, articles, essay, etc. It can even answer test questions. ChatGPT-4 was tested to answer exams originally designed for humans and the estimated percentile for a uniform Bar exams was 298/400. 
•	Also, it attempts to reduce deceitful responses by framing its answer as a hypothetical consideration of the prompt.
•	Similarly, ChatGPT can accept a prompt of both text and images. This really came to life with the ChatGPT-4 even though it outputs texts. Image inputs are still a research preview and not publicly available. That is, the image input will be available to only users of ChatGPT-4. 
•	Lastly, ChatGPT does not erase previous prompts by a user on the same conversation.
  
**Limitations**
Even though ChatGPT was created to imitate man and try to be as natural as possible. It can never replace man nor exist without its shortcomings. Hence, it is not fully reliable. Some of the limitations include;
•	It sometimes writes incorrect answers or answers without meaning.
•	It is sensible to tweaks in input statements. Like, given one phrasing of a question, the model can claim to not know the answer, but given a slight rephrase, can answer correctly.
•	It can sometimes respond to harmful instructions or show biased behavior. For this OpenAI uses the [Moderation API](**https://openai.com/blog/new-and-improved-content-moderation-tooling/https://openai.com/blog/new-and-improved-content-moderation-tooling/**) to warn or block certain types of improper contents.
•	It can fail at hard problems the same way humans do, such as introducing security vulnerabilities into the code it produces.

However, GPT-4 scored 40% higher in its internal adversarial factuality evaluation making it better than GPT-3.5(the previous version).

Having talked extensively about ChatGPT, you will agree with me that using ChatGPT with caution will aid your productivity when coding. Now, this is how I use it on my VScode;

VScode has an extension available for download on it extension store called, CodeGPT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vnku76moiw1rupvz01dy.JPG)
**Installation**
This is pretty much simple. 
Search for Code GPT on your extensions search bar.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yzshfybu3vdudlh9vdaw.jpg)
Install and restart your VScode to activate.

**Usage**
**_Caution:_****_ Do not ask very tactical coding issues to prevent creating bugs in your codes. Use with caution and review every output!_**
A chat icon will appear at the left menu bar on your VScode. Click on the chat icon and begin to use Code GPT.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9q035xbs5n32gajrruw.jpg)

You can write a comment asking for a specific code, press **ctrl+shift+i** or **cmd+shift+i** and use the code generated. 
You can also ask CodeGpt to review a set of code. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew33lfynoo0xznl5qop9.JPG)

It has a functionality that allows you to get questions from Stackoverflow and compare the best human answer with the answer from an artificial intelligence. 

You can ask CodeGPT to create a README.md for a set of codes
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4bjs4tfr8eifktkbz512.JPG)

You can also select a block of code and ask CodeGPT to explain the code for you. 
And lots more!!

In summary, ChatGPT is an AI designed to help us but not to replace us. It cannot replace your intellect and what you code from your own understanding of a language. Utilize the help and give your best.