<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Andrew Zhang</title>
    <description>The latest articles on Forem by Andrew Zhang (@ajikan).</description>
    <link>https://forem.com/ajikan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1015344%2Fe8519433-ccc8-45bb-9afa-5e17d7dbe90b.jpeg</url>
      <title>Forem: Andrew Zhang</title>
      <link>https://forem.com/ajikan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ajikan"/>
    <language>en</language>
    <item>
      <title>Scribe AI - ChatGPT like VSCode Extension</title>
      <dc:creator>Andrew Zhang</dc:creator>
      <pubDate>Fri, 27 Jan 2023 04:51:58 +0000</pubDate>
      <link>https://forem.com/ajikan/scribe-ai-chatgpt-vscode-extension-1ln2</link>
      <guid>https://forem.com/ajikan/scribe-ai-chatgpt-vscode-extension-1ln2</guid>
      <description>&lt;p&gt;Hi everyone, I'm a junior developer that's been in the work industry for almost 1.5 years and if there's one thing I learned working in the industry is that you have to read &lt;strong&gt;lots and lots&lt;/strong&gt; of legacy code and code written by other people. &lt;br&gt;
But reading other people's code is so time consuming!! I could have spent that time writing actual code!! If only there was something that can describe to me in plain words what the code is doing which can help me with understanding the code faster and better!&lt;/p&gt;

&lt;p&gt; &lt;br&gt;
 &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj8al3w839ewi1iwrum03.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj8al3w839ewi1iwrum03.png" alt="Image description" width="200" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  📢 Introducing Scribe AI
&lt;/h2&gt;

&lt;p&gt;Seeing as how ChatGPT can be used to understand and modify code, I wanted to see if I could integrate it into IDEs. Scribe AI is a VSCode extension that can be used to understand code just by highlighting a piece of code and asking questions about it similar to how you would in ChatGPT. The conversation is saved on your workspace and you can come back to view it later so it's good for note keeping as well. &lt;/p&gt;

&lt;h3&gt;
  
  
  🌟 Preview
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8r1u45om85os0qx6s05.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8r1u45om85os0qx6s05.gif" alt="Preview" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hurray!✨ Now you can have AI chatbot like ChatGPT right in VS Code! Use it as your AI programming assistant which you can talk with to understand complex code, modify and improve your code, or generate comments for your code. The possibilities are endless.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  🔗 Links:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=AndrewZhang.scribeai" rel="noopener noreferrer"&gt;VSCode Marketplace&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://github.com/ajikan/ScribeAI" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://www.reddit.com/r/vscode/comments/10lzjry/chatgpt_vscode_extension/?utm_source=share&amp;amp;utm_medium=web2x&amp;amp;context=3" rel="noopener noreferrer"&gt;Reddit&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  ✨ Features
&lt;/h2&gt;

&lt;p&gt;💬 &lt;strong&gt;Ask AI:&lt;/strong&gt; Highlight a piece of code, click on the chat icon, and type in any questions you might have about the code such as &lt;code&gt;Explain the code&lt;/code&gt;. Then hit &lt;code&gt;Ask AI&lt;/code&gt; button! The AI will respond back to you with the response. You can continue to reply to the AI’s response and hold a conversation with the AI just like in ChatGPT! The conversation context is maintained between queries. The conversation will be saved in your workspace and you can close it and open it anytime. You can also edit your comments and delete them. &lt;br&gt;
&lt;strong&gt;&lt;em&gt;Ask Questions:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8r1u45om85os0qx6s05.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8r1u45om85os0qx6s05.gif" alt="Preview" width="600" height="432"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Edit Comments:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4moivxg7wubmr5zvcdi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4moivxg7wubmr5zvcdi.gif" alt="Edit Comment" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;🧠 &lt;strong&gt;AI Edit:&lt;/strong&gt; Highlight a piece of code and click on the chat icon, then enter the instruction on how you want the AI to modify the code such as &lt;code&gt;Refactor the code to include comments&lt;/code&gt;, &lt;code&gt;Rewrite the code in Python&lt;/code&gt;, etc. Now finally hit &lt;code&gt;AI Edit&lt;/code&gt; button and you will see that your selected code has been modified. If you don’t like the result you can always Undo it by pressing &lt;code&gt;Mac:&lt;/code&gt; ⌘ Command + Z, &lt;code&gt;Windows:&lt;/code&gt; Ctrl + Z or go to &lt;code&gt;Edit -&amp;gt; Undo&lt;/code&gt;. Sometimes the formatting of the result is not correct or your originally highlighted section gets messed up, in such cases you can rehighlight the code and ask AI to &lt;code&gt;Reformat the code so that it’s correct&lt;/code&gt; and press the &lt;code&gt;AI Edit&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Refactoring:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg88drh3wmdi3iemuv7il.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg88drh3wmdi3iemuv7il.gif" alt="Refactoring" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Rewriting in another lanugage:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2hwdjud38mid8mwzptc.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2hwdjud38mid8mwzptc.gif" alt="Rewriting" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Adding docstring:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm4mjrhjnizh4ax3bq8r.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm4mjrhjnizh4ax3bq8r.gif" alt="Docstring" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Fixing mistakes:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c8htfsn9ngqzz3nlk0q.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c8htfsn9ngqzz3nlk0q.gif" alt="Fix Mistake" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;📝 &lt;strong&gt;Note Taking:&lt;/strong&gt; You can also add notes inside your conversation by typing your note and pressing &lt;code&gt;Create Note&lt;/code&gt;. Your notes won’t get sent over to AI.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flusegqsvvnk4ybyfq98a.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flusegqsvvnk4ybyfq98a.gif" alt="Note Taking" width="600" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Getting Started
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📦 Installation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To use this extension, install it from the VSCode marketplace or download and install &lt;code&gt;.vsix&lt;/code&gt; file from Releases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you first use ScribeAI whether by &lt;code&gt;Ask AI&lt;/code&gt; or &lt;code&gt;AI Edit&lt;/code&gt;, it will ask you for your OpenAI API key. This is used by the extension to access the API and is only sent to OpenAI.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi7ofmvmeuf99irij4hgf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi7ofmvmeuf99irij4hgf.png" alt="API Key" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚙️ Settings
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You can also change your API key in User Settings via &lt;code&gt;Code&lt;/code&gt; -&amp;gt; &lt;code&gt;Preferences&lt;/code&gt; -&amp;gt; &lt;code&gt;Settings&lt;/code&gt; and under &lt;code&gt;Extensions&lt;/code&gt; you will find &lt;code&gt;ScribeAI&lt;/code&gt; settings. Or you can just search &lt;code&gt;ScribeAI&lt;/code&gt; in search box.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu1bldefk01a5nzg6vwa3.png" alt="User Settings" width="800" height="421"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;To find your OpenAI API key:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="https://beta.openai.com/account/api-keys" rel="noopener noreferrer"&gt;https://beta.openai.com/account/api-keys&lt;/a&gt;. You will need to log in (or sign up) to your OpenAI account.&lt;/li&gt;
&lt;li&gt;Click "Create new secret key", and copy it.&lt;/li&gt;
&lt;li&gt;You should then paste it into VS Code when prompted.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;If you wish to change the AI model you use which by default is &lt;code&gt;code-davinci-002&lt;/code&gt; (because it’s free currently), then you can change it in User Settings.&lt;/li&gt;
&lt;li&gt;💥 Remember to reset your extension and workspace when you change your settings. You can do that by clicking on &lt;code&gt;restart your extension&lt;/code&gt; in the API key settings 💥&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The extension currently uses the official API of OpenAI to access its GPT models (code-davinci-002 by default) so it's not as performant as ChatGPT. I do this because using unofficial ChatGPT API is unsupported by OpenAI and it's not reliable. But once the official API for ChatGPT is out, I plan to integrate it. This is my first extension I ever made so it would be awesome if you guys could check it out and let me know if you find it useful or find any bugs or tips and suggestions on how to improve it.&lt;/p&gt;

&lt;p&gt;I really hope this tool will be helpful to many of you guys 💙&lt;/p&gt;

&lt;p&gt;Thanks and happy coding! 😊&lt;/p&gt;

&lt;p&gt;&lt;a href="https://icons8.com/icon/uZrQP6cYos2I/chatbot" rel="noopener noreferrer"&gt;Chatbot icon by Icons8&lt;/a&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
