Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>brokiecursorNew to Visual Studio Code? Get it now.
brokiecursor

brokiecursor

hegasz

|
6 installs
| (0) | Free
Quickly get your files into a prompt
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

brokiecursor

brokiecursor is a one-click workflow to instantly generate a clean, ready-to-paste ChatGPT prompt containing your project structure and selected file contents, directly within VS Code.

Features

Feature Description
🖱 Right-click → Generate Prompt Select multiple files in VS Code's Explorer sidebar, right-click, and instantly generate a markdown-formatted prompt.
📋 Auto-copy to Clipboard The prompt is automatically copied to your clipboard—just paste into ChatGPT.
🗂 ASCII Project Tree A neatly formatted ASCII representation of your repository structure up to depth 2.
🚫 Respects .gitignore Automatically excludes files and folders ignored by Git.
⚡️ Command Palette Fallback Invoke via Command Palette (Cmd+Shift+P) to select files from a picker if none are selected in the Explorer.

Tip: To select multiple non-contiguous files, hold Cmd (macOS) or Ctrl (Windows/Linux) while clicking files in the Explorer.

brokiecursor Demo

Above: Selecting multiple files → right-click → instant markdown prompt.

Note you must not have any folders selected when you use the Generate Prompt command - doing so will lead to error ISDIR: illegal operation on a directory, read

Extension Settings

This extension contributes the following optional settings (add to your settings.json if customization is needed):

Setting Default Description
brokiecursor.treeDepth 3 Maximum folder depth displayed in the project tree.
brokiecursor.copyToClipboard true Set to false to disable automatic clipboard copying.

Development & Packaging

1 — Clone and install

In any directory - you can delete this repo once extension is installed.

git clone https://github.com/hegasz/brokiecursor.git
cd brokiecursor

npm install

2 — Compile

npm run compile

(optional) 3 — Run in Dev Mode

Press F5 inside VS Code to launch the Extension Development Host for testing.

4 — Build a .vsix

npx vsce package

5 — Install the extension locally

For VSCode:

code --install-extension brokiecursor-0.0.1.vsix

or for Cursor

cursor --install-extension brokiecursor-0.0.1.vsix

(note for both you need the code or cursor shell commands installed - "Shell Command: Install 'code/cursor' command")

6 - Delete this folder

Compatibility

brokiecursor targets VS Code ≥ 1.96.0 (Cursor 0.x and newer VS Code).

If you see a “not compatible” error, update VS Code or rebuild:

npm install --save-dev @types/vscode@1.96.0
# set "engines.vscode": "^1.96.0" in package.json
npm run compile && npx vsce package
code --install-extension brokiecursor‑0.0.1.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft