Easily copy code from VS Code with project, file, and context details – ready to paste into ChatGPT or any AI tool.
📸 Screenshots
Fig. 1 – Access the command from the right‑click menu or use Ctrl + Shift + C.
Fig. 2 – Paste directly into ChatGPT (Ctrl + V) with context included.
🚀 Why use Copy for AI?
✔️ No need to type triple backticks ``` every time.
✔️ Automatically includes file path, and line numbers.
✔️ Optionally adds surrounding context lines (configurable in settings).
✔️ Produces clean, Markdown‑formatted code ready for AI.
🛠 How to Use
Select the code you want in VS Code.
Run Copy for AI from:
Right‑click context menu
Command Palette
Or press Ctrl + Shift + C
Paste (Ctrl + V) into ChatGPT (or any AI tool) and start asking questions.