Skip to content

Context

Context mentions are a powerful way to provide VJSP with specific information about your project, enabling it to perform tasks more accurately and efficiently. You can use mentions to reference files, folders, problems, Git commits, and more. Context mentions start with the @ symbol.


Overview of context mentions, showing the @ symbol dropdown menu in the chat interface.

Mention Types


File mentions add actual code content into the conversation for direct reference and analysis.

Mention TypeFormatDescriptionExample Usage
File@/path/to/file.tsIncludes file content in the request context"Explain the function in @/src/utils.ts"
Folder@/path/to/folder/Provides directory structure in tree format"What files are in @/src/components/?"
Problems@problemsIncludes diagnostic info from the IDE Problems panel"Fix all errors in my code using @problems"
Terminal@terminalIncludes recent terminal commands and output"Fix the error shown in @terminal"
Git Commit@a1b2c3dReferences a specific commit by its hash"What changed in commit @a1b2c3d?"
Git Changes@git-changesShows uncommitted changes"Suggest a commit message for @git-changes"
URL@https://example.comImports website content"Summarize @https://vjsp.net/"

File Mentions


File mentions combine line numbers with source code for precise referencing.

FeatureDetails
Format@/path/to/file.ts (paths always start from the workspace root and begin with /)
Content DisplayReturns full file content with line numbers
Supported TypesText files, PDFs, and DOCX (text-extractable formats)
Use CasesInitial queries, context supplementation, feedback responses, and file references in follow-up interactions
NotesVery large files may be truncated; pure binary files (e.g., images, executables) are not supported

Folder Mentions


Folder mentions display directory structure in a readable tree format.

FeatureDetails
Format@/path/to/folder/ (note the trailing slash)
Display StyleHierarchical tree using ├── and └── prefixes
ScopeLists only immediate children (files and subdirectories), without recursive expansion
Use CasesQuickly understanding project or module layout
RecommendationCombine with specific file mentions to inspect content for deeper understanding

Problems Mention


The problems mention imports diagnostics directly from the IDE’s Problems panel.

FeatureDetails
Format@problems
ContentAutomatically extracts all errors and warnings from the IDE Problems panel
Information IncludedFile path, line number, and detailed diagnostic messages
OrganizationGrouped by file for improved readability and quick navigation
Best UseRapidly fix code issues without manually copying error messages

Terminal Mention


The terminal mention captures recent command output for debugging and analysis.

FeatureDetails
Format@terminal
Captured ContentThe most recently executed command and its full output
State PreservationDoes not clear the terminal; preserves current terminal state
LimitationsOnly retrieves content within the visible terminal buffer
Best UseDebugging build errors or analyzing command-line output

Git Mentions


Git mentions provide commit details and diffs for context-aware version analysis.

TypeFormatProvided ContentLimitations
Commit@a1b2c3dCommit metadata (message, author, date) and full diffOnly works in Git repositories
Workspace Changes@git-changesOutput of git status and detailed diffs of uncommitted changesOnly works in Git repositories

URL Mentions


URL mentions import external web content and convert it into readable Markdown.

FeatureDetails
Format@https://example.com
ProcessingFetches content using a headless browser
CleaningRemoves scripts, styles, and navigation elements
OutputConverts content to Markdown for better readability
LimitationsComplex pages may not convert perfectly

How to Use Mentions

  1. Type @ in the chat input box to trigger the suggestion dropdown menu
  2. Continue typing to filter suggestions, or use arrow keys to navigate
  3. Press Enter or click to select
  4. Combine multiple mentions in a single request:
    "Fix the @problems in @/src/component.ts"

The dropdown menu automatically suggests:

  • Recently opened files
  • Visible folders
  • Recent Git commits
  • Special keywords (problems, terminal, git-changes)

Best Practices

PracticeDescription
Use specific pathsReference exact file paths instead of describing locations in words
Use relative pathsPaths always start from the workspace root (e.g., @/src/file.ts); avoid absolute paths like @C:/Projects/src/file.ts
Verify reference accuracyEnsure file paths and commit hashes (e.g., @a1b2c3d) are correct and valid
Click mentions to navigateClick on file or commit mentions in chat history to open the file or view related content instantly
Avoid manual copy-pastePrefer smart mentions (e.g., @/file.ts or @problems) over pasting code snippets or error messages
Combine multiple mentionsMix and match as needed—for example: “Refer to the implementation in commit @a1b2c3d to fix the @problems in @/src/component.ts”