Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode GPT AutomateNew to Visual Studio Code? Get it now.
VSCode GPT Automate

VSCode GPT Automate

ethanrjs

|
2,059 installs
| (1) | Free
Automate tasks by prompting ChatGPT to interact with your workspace.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-gpt-automate

vscode-gpt-automate 🤖

Exponentiate your developer workflow using ChatGPT seamlessly integrated into VSCode.

Public beta lasts until 4/17/2023. Here is a free api key. bb9bf2e8-4cbd-4550-af69-e55da038729a

This API key will expire on 4/17/2023. Email me to register for a new key (ethan@ethanmrettinger.dev)

Features 🔥

Capabilities 🚀

  • ✅ Make files with code in them
  • ✅ Create a project structure
  • ✅ Run commands, files and programs automatically
  • ✅ Create a workspace
  • ✅ Works in any language (But you MUST be specific!)
  • ✅ Can see the file names of all files in your workspace (excluding node_modules because it is too large)

Limitation ⚠️

  • ❌ It can not view code in any of your files
  • ❌ It can only write so much text in files in one prompt
  • ❌ It has a tendency to reject prompts, even if they are good. Try to word it a little differently and be more verbose.
  • ❌ It can not work with files outside of the workspace
  • ❌ It has a tendency to reject prompts not JavaScript or C related due to the pre-prompt included in the code. This just means be more verbose and it will likely work.
  • ❌ Prompt max length can be reached if you have a very large workspace. This is being fixed.

Examples 📒

Smart File Generation 📂

demo_1

Workspace Context 🧠

demo_2

Instantly Complete Tedious Tasks 😴

demo_3

Workflow Enhancer ⏩

demo_4

Installation 📦

Visual Studio Code

  1. Search vscode-gpt-automate in the Extensions marketplace
  2. Click Install
  3. Navigate to settings, and under Extensions > GPT Automate (or search vscode-gpt-automate), set your API key.
  4. Reload VSCode if necessary

Neovim (Not yet ready)

  1. Install pynvim: pip install pynvim

  2. Create a folder inside ~/.config/nvim/plugged called gpt-automate-nvim (On windows, it's ~\AppData\Local\nvim-data\plugged)

  3. Import nvim-plugin/gpt-automate.py into ~/.config/nvim/plugged/gpt-automate-nvim

  4. Enter this line between plug#begin() and plug#end() in your init.vim file:

Plug 'Plug '~/gpt-automate-nvim'
  1. Set your API key in init.vim
let g:vscode_gpt_automate_api_key = "<your_api_key_here>"
  1. Run :source $MYVIMRC to reload your init.vim file
  2. Run :PlugInstall to install the plugin

How to Use 📝

Visual Studio Code

  1. Open a workspace
  2. Press CTRL+SHIFT+P
  3. Type "GPT"
  4. Select GPT Automate Prompt
  5. Type your prompt
  6. Press Enter

Neovim

  1. Open a workspace
  2. Type :GPTAutomatePrompt
  3. Type your prompt
  4. Press Enter

While it may be able to deliver on bad prompts, it's generally recommended to stick with good prompt conventions to get more reliable results.

How to write Good Prompts

  • ✅ Be Specific
  • ✅ Tell it what files to make
  • ✅ Tell it if you want to run it afterwards or not
  • ✅ Tell it what language(s) to use

Good Prompts:

  • ✅ Make a nodejs program in JavaScript that says babbur 1,000 times and run it
  • ✅ Make a website in HTML with a few buttons on it that when clicked alert babbur
  • ✅ Make a file called main.py, write a program in Python that says babbur 1,000 times, and run it
  • ✅ Make a file called main.js, write a program in JavaScript that says babbur 1,000 times, and run it
  • ✅ Delete all files in my workspace besides 'index.js' and 'main.js' and make a file called 'index.js' that says babbur 1,000 times and run it

Bad Prompts:

  • ❌ Make a program that says babbur
  • ❌ Make snake
  • ❌ Make a website that says babbur
  • ❌ Make an app
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft