VS File Prompt GeneratorThe VS File Prompt Generator (version 0.1.3) is an extension designed to help developers create structured prompts for AI-driven coding assistance by leveraging their project’s context. It allows you to select specific files and folders from your workspace, gather their contents, and generate a comprehensive File Picker ViewA dedicated "File Selector" view is added to the Explorer panel. This view displays your entire workspace structure as a collapsible tree. You can select/deselect individual files as well as entire directories. The entries are alphabetically sorted, making it easier to quickly find and select the files or folders you need. Exported AI Prompt FileAfter selecting the desired files and/or directories, run the "Export Selected Files" command. This generates an Features
Example{ "project-context": "", "prompt": "", "prompt-rules": [ "Always deliver the full scripts with your additions...", "Always use the provided files and data structure...", "Write your code with comments..." ], "structure": { "peopol": [ { "dist": [ "background.js", { "assets": [ "main-kQJbKSsj.css" ] } ] } ] }, "files": { "peopol/dist/background.js": "// file content here" }, "errors": [ { "file": "peopol/dist/background.js", "line": 10, "errorMessage": "Cannot find module 'x'" } ] } RequirementsVS Code Version: Visual Studio Code v1.95.0 or later is recommended. Workspace Folder: You must have a workspace folder open. Diagnostics: Error reporting depends on the language servers, linters, or other diagnostic providers you have set up. If no diagnostics are available, the errors array may be empty. Extension SettingsCurrently, this extension does not add new user-facing settings. All functionality works out-of-the-box. Future versions may introduce customization options (e.g., ignoring certain directories, customizing output file name, etc.). Known IssuesDiagnostics Dependence: If no language servers or linters are configured, the errors section may remain empty. Web Extension Support: This extension currently works only in local environments, not in web-based instances of VS Code. Change ListVersion 0.1.8Export Groups: Enables the user to create different groups for different file Exports - Groups can be renamed, exported and deleted Hide Files from File Selector: to make the groups more userfriendly and enable the user to take control of the structure output he can now hide files with an x button next to the file. Auto Update new Files: In previous Version you had to update the files manually now newly created files are automatically added to the tree-picker Some Bug Fixes gerading filling the structure and file attributes Version 0.1.6Introduced groups to save multiple export file sets Removed Warnings from the errors Version 0.1.3Introduced hierarchical folder structure in the file selector. Allowed toggling entire directories as well as individual files. Added alphabetical sorting of files and directories. Maintained existing prompt-rules when exporting aiPrompt.json if already present. Stability and reliability improvements. Version 0.1.2Introduced inline toggle buttons for easier selection. Export now retains previously defined prompt-rules in aiPrompt.json. Various bug fixes and performance improvements. Version 1.0.0 (Initial Release)Added "File Selector" view and toggle selection feature for files. Exporting selected files to aiPrompt.json with structure, files, and errors. Automatically opens aiPrompt.json after export and updates .gitignore. (Note: The jump from version 1.0.0 to 0.x.x versions indicates a revision in versioning strategy.) |