VSCode Setup
Learn how to setup Visual Studio Code and GitHub Copilot to generate accurate Tomba API code using our llms.txt
documentation file.
Quick Use
For immediate access to Tomba API documentation in any chat window:
GitHub Copilot Chat
In the GitHub Copilot chat window, type this command and VSCode will use Tomba API's llms.txt
file to generate code:
Code
Example Prompt
Code
This will fetch our complete API documentation and generate accurate code based on the latest information.
Project-level Permanent Setup
For a more permanent solution, you can setup Tomba API's llms.txt
file in your workspace so GitHub Copilot can use it by default.
Method 1: Using .github/instructions (Recommended)
GitHub Copilot automatically reads instruction files from the .github/instructions/
directory. Run this command in your project root:
Code
This creates a permanent reference that GitHub Copilot will automatically use when generating Tomba API code.
Method 2: Workspace Instructions
You can also create a workspace-specific instructions file:
Code
Then reference it in your prompts:
Code
Configuration Tips
1. Enable GitHub Copilot Chat
Make sure you have the GitHub Copilot Chat extension installed:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "GitHub Copilot Chat"
- Install the extension
2. Authentication
Ensure you're signed in to GitHub Copilot:
- Open Command Palette (Ctrl+Shift+P)
- Type "GitHub Copilot: Sign In"
- Follow the authentication process
3. Workspace Settings
Add these settings to your workspace settings.json
for better AI assistance:
Code
Example Usage
Finding Email Addresses
Prompt:
Code
Generated Code:
Code
Email Verification
Prompt:
Code
Generated Code:
Code
Best Practices
1. Be Specific in Prompts
Instead of:
Code
Use:
Code
2. Include Context
Reference specific endpoints or features:
Code
3. Specify Programming Language
Always specify your preferred language:
Code
Troubleshooting
GitHub Copilot Not Using Instructions
- Ensure the
.github/instructions/
directory is in your project root - Restart VS Code after adding instruction files
- Try referencing the file explicitly:
@workspace #file:tomba.instructions.md
API Key Issues
Make sure your prompts include environment variable usage:
Code
Rate Limiting
Include rate limiting in your prompts:
Code
Additional Resources
- GitHub Copilot Documentation
- VS Code GitHub Copilot Extension
- Tomba API Documentation
- Authentication Guide