Getting Started with Dev-Docs
Dev-Docs is a powerful VS Code extension that helps you generate and manage documentation for your codebase. This guide will walk you through the basic setup and usage to get you up and running quickly.
Installation
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for "Dev-Docs"
- Click "Install"
Initial Setup
- Open your project folder in VS Code
- Press Ctrl+Shift+P to open the Command Palette
- Type "Dev-Docs: Initialize" and select it
- This will create a
dev-docs.json
file in your project root
Generating Documentation
- Open a code file you want to document
- Press Shift+Cmd+D (Mac) or Shift+Ctrl+D (Windows/Linux)
- Dev-Docs will analyze your code and generate documentation
Customizing Generation
Edit the dev-docs.json
file to customize how Dev-Docs generates documentation:
{
"ai": {
"internalTypeFilters": ["class", "method", "function"],
"docSubFolder": "api/",
"contextPrompt": "Generate comprehensive API documentation"
}
}
Viewing Documentation
Generated docs will be saved in your project's docs
folder (or the folder specified in docSubFolder
).
Next Steps
- Explore other commands like "Generate High Level Context" and "Find Missing Documentation"
- Check out the full documentation at https://dev-docs.ai for advanced features and customization options
With these basic steps, you're ready to start using Dev-Docs to streamline your documentation process!