@PathComplete
English | 中文
Auto-complete file paths by typing @ in your documents.
Features
- Type
@ followed by a filename to get path suggestions
- Smart fuzzy matching (e.g.,
@comp.ts matches src/components/Button.ts)
- Priority-based sorting for important directories
- Works in Markdown and other configurable file types
Usage
- Open a Markdown file (or configure other file types)
- Type
@ followed by part of a filename
- Select from suggestions and press Enter
- The relative path is inserted
Configuration
| Setting |
Default |
Description |
exclude |
["node_modules", ".git", ...] |
Patterns to exclude from search |
priority |
["src", "lib", "app"] |
Directories to prioritize (first = highest) |
maxResults |
50 |
Maximum suggestions shown |
insertFormat |
"relative" |
Path format: relative or workspace |
useGitIgnore |
false |
Also exclude files matching .gitignore patterns |
enabledCondition |
{type: "language", match: ["markdown"]} |
When to enable |
Pattern Syntax
dirname — matches directory anywhere (e.g., node_modules)
*.ext — matches file extension (e.g., *.min.js)
path/to/dir — matches path prefix
Commands
@PathComplete | Toggle — Enable/disable the extension
@PathComplete | Reindex — Rebuild file cache
@PathComplete | Show Cache — View cached files (debug)
| |