VS Code Extension
Query your documentation directly from VS Code with the RLM Context extension. Get AI-optimized context without leaving your editor.
Features
Ask Questions
Query documentation with natural language directly from your editor
Smart Search
Regex-powered search across all your indexed documentation
Context Management
Inject, view, and manage session context for better results
Sidebar View
Browse results and navigate to relevant documentation sections
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "RLM Context"
- Click Install
From VSIX
- Download the
.vsixfile from GitHub Releases - Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run "Extensions: Install from VSIX..."
- Select the downloaded file
Configuration
Quick Setup
- Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run "RLM: Configure API Key"
- Enter your API key from the RLM Dashboard
- Enter your project ID
Settings Reference
Or configure in settings.json:
{
"rlm.apiKey": "your-api-key",
"rlm.projectId": "your-project-id",
"rlm.serverUrl": "https://mcp.rlm.dev",
"rlm.maxTokens": 4000,
"rlm.searchMode": "hybrid"
}| Setting | Default | Description |
|---|---|---|
rlm.apiKey | - | Your RLM API key |
rlm.projectId | - | Your RLM project ID |
rlm.serverUrl | https://mcp.rlm.dev | MCP server URL |
rlm.maxTokens | 4000 | Maximum tokens for context queries |
rlm.searchMode | hybrid | Search mode: keyword, semantic, or hybrid |
Commands
| Command | Shortcut | Description |
|---|---|---|
| RLM: Ask Question | Ctrl+Shift+R | Query your documentation |
| RLM: Search Documentation | - | Search with regex pattern |
| RLM: Show Current Context | - | View session context |
| RLM: Clear Context | - | Clear session context |
| RLM: Inject Context | - | Add session context |
| RLM: Configure API Key | - | Set up API credentials |
Usage
Asking Questions
- Press Ctrl+Shift+R (or Cmd+Shift+R on Mac)
- Type your question (e.g., "How does authentication work?")
- View results in the RLM sidebar
- Click on a result to view the full content
Injecting Context
Session context improves query relevance by providing background information:
- Select text in your editor (optional)
- Run "RLM: Inject Context" from Command Palette
- Choose to replace or append to existing context
- Future queries will use this context for better results
Pro Tip
Inject context like "Working on: user authentication" to get more relevant results for your current task.
Sidebar Views
Results View
Shows query results with relevant documentation sections. Click on a section to view its full content. Results include file path, line numbers, and relevance scores.
Session Context View
Displays the current session context that's being used to enhance query results. Manage context from here.
Troubleshooting
Make sure you've set both rlm.apiKey and rlm.projectId in settings. Run "RLM: Configure API Key" to set them up.
Check that your API key is valid and hasn't expired. Verify the project ID matches an active project. Check the Output panel (View > Output > RLM Context) for detailed error messages.
Try using the "hybrid" search mode for best results. Inject context about what you're working on. Make sure your documentation has been indexed and synced.