VS Code Extension
The MUR Patterns extension brings pattern injection directly into VS Code.
Installation
From Marketplace
Search for "MUR Patterns" in the VS Code Extensions view, or:
ext install mur-run.mur-patterns
From Source
git clone https://github.com/mur-run/mur-vscode
cd mur-vscode
npm install
npm run compile
code --install-extension mur-patterns-*.vsix
Requirements
- MUR CLI installed (
brew install murorcargo install --git https://github.com/mur-run/mur.git)
Commands
| Command | Shortcut | Description |
|---|---|---|
MUR: Inject Patterns | Cmd+Shift+M | Inject relevant patterns for current file |
MUR: Search Patterns | Cmd+Shift+F M | Search your pattern library |
MUR: Show Pattern Stats | - | View usage analytics |
MUR: Learn from Current File | - | Extract patterns from code |
MUR: Rate Pattern | - | Give feedback on pattern effectiveness |
Settings
| Setting | Default | Description |
|---|---|---|
mur.autoInject | false | Auto-inject patterns when opening files |
mur.murPath | mur | Path to mur CLI binary |
mur.maxPatterns | 5 | Maximum patterns to inject |
Usage
Inject Patterns
- Open any code file
- Press
Cmd+Shift+M(orCtrl+Shift+Mon Windows/Linux) - Relevant patterns appear in the Output panel
Patterns are selected based on:
- File extension (language)
- Project type
- Content similarity
Search Patterns
- Press
Cmd+Shift+F M - Enter a natural language query
- Results appear in the Output panel
Example queries:
- "Swift async testing"
- "Docker multi-stage builds"
- "Go error handling"
Learn from Code
- Select code in the editor (or leave empty for full file)
- Right-click → "MUR: Learn from Current File"
- Patterns are extracted and shown
Context Menu
Right-click in any editor to access:
- Inject Patterns
- Learn from Current File
Status Bar
The extension shows a status bar item:
$(lightbulb) MUR- Click to view stats$(lightbulb) MUR (3)- Number of injected patterns
Troubleshooting
"mur command not found"
Set the full path in settings:
No patterns found
- Check you have patterns:
mur list - Run indexing:
mur index - Verify search works:
mur search "test"