<?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: Sandy</title>
    <description>The latest articles on Forem by Sandy (@notasandy).</description>
    <link>https://forem.com/notasandy</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%2F3895343%2F638c99af-7768-4d7d-b10a-6741f66f3a21.jpg</url>
      <title>Forem: Sandy</title>
      <link>https://forem.com/notasandy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/notasandy"/>
    <language>en</language>
    <item>
      <title>I built a VS Code extension in 3 days because copy-pasting into ChatGPT was annoying</title>
      <dc:creator>Sandy</dc:creator>
      <pubDate>Fri, 24 Apr 2026 18:01:46 +0000</pubDate>
      <link>https://forem.com/notasandy/i-built-a-vs-code-extension-in-3-days-because-copy-pasting-into-chatgpt-was-annoying-3opf</link>
      <guid>https://forem.com/notasandy/i-built-a-vs-code-extension-in-3-days-because-copy-pasting-into-chatgpt-was-annoying-3opf</guid>
      <description>&lt;p&gt;Three days ago I was sitting on yet another ChatGPT session, spending more time explaining where my code lives than actually asking the question. Not a tragedy — just annoying. I don't have a lot of time, and I didn't want to waste it on copy-paste rituals.&lt;/p&gt;

&lt;p&gt;Googled for something that already solved this. Nothing useful. So I spent three evenings building it myself.&lt;/p&gt;




&lt;p&gt;The extension is called &lt;strong&gt;Copy Code to ChatGPT&lt;/strong&gt;. It adds a right-click menu in VS Code that copies your code the way AI actually needs it — with the file path, line numbers, and proper Markdown formatting. Not just the raw snippet.&lt;/p&gt;

&lt;p&gt;So instead of pasting this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;formatOutput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;filePath&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;...and then typing &lt;em&gt;"this is from utils/formatter.ts around line 45, it's TypeScript, the context is..."&lt;/em&gt; — you just paste and the AI already knows where it came from.&lt;/p&gt;

&lt;p&gt;You can also copy entire folders as a single block, grab the project structure as a tree, and see the token count before sending so you don't hit the limit mid-conversation. There's also basic import-following — point at a file and it pulls in related files by tracing dependencies. Not perfect, but already way more useful than copying things manually.&lt;/p&gt;

&lt;p&gt;I published it on the VS Code Marketplace and on GitHub. It's free, open source, no telemetry.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=notasandy.copy-code-to-chatgpt" rel="noopener noreferrer"&gt;Marketplace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/notasandy/copy-for-ai" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you work with AI assistants daily and have a better approach to this — genuinely curious what you're doing.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>vscode</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
