Overview Version History Q & A Rating & Review
📘 VS Code Extension – Salesforce Documentation Generator
VS Code extension that automatically generates technical documentation in PDF for Salesforce project files (Apex, LWC, Flow, and Trigger), with Mermaid diagram support in PDFs .
🚀 Features
🧠 AI-powered documentation generation
📄 File support:
.cls
(Apex)
.trigger
(Trigger)
.js
in LWC
.flow-meta.xml
(Flows)
🖼️ Mermaid diagrams (converted to images)
📂 Multi-root workspace support
🛠️ Installing Dependencies
Install the required dependencies:
npm install formdata-node form-data-encoder node-fetch puppeteer markdown-it
Global dependency for diagram generation:
npm install -g @mermaid-js/mermaid-cli
⚙️ How to Use
Right-click on a file or folder in VS Code.
Select "GFT AI Create Documentation" from the context menu.
Log in via the browser when prompted.
Wait for the PDF documentation to be generated automatically.
📁 Output Location
The generated PDFs will be saved at:
Example: ~/Documents/GFT-docs/classes/MyClass.pdf
📷 Output Example
📂 GFT-docs/
├── classes/
│ ├── MyApexClass.pdf
├── lwc/
│ ├── MyComponent.pdf
👨💻 Author
Developed by Guilherme Assis from GFT to automate Salesforce documentation with a focus on productivity and technical quality.