v1.4
Select IDE
Visual Studio CodeIntelliJVisual Studio
Home
Blog
Knowledge Base
Download
ℹ️ Introduction
📜 Release History 🔥 What's New
💻 User Guide
🛠 Installation
🆔 Log In
💻 Features
▼
▶
Chat ConversationPredefined Actions
CodeVista Streak
Code Context
Workspace Status
Autocomplete
Autodoc
Inline Chat
Web Search
Feedback System
💲 Usage Quotas❗️ Instructions for Internal FPT Users
❔ FAQ
Visit xVista Homepage

Code Context

The Code Context feature allows you to upload code files that are currently open in your workspace to the CodeVista context system. This provides context for features like code chatting, command prompting, and predefined workflows.

Follow these steps to use the Code Context feature:

Upload Code Context

Access Code Context

In CodeVista Chat Conversation Panel, click the Code Context button in the navigation bar.
The Code Context interface will appear.

Upload Code Files

In the Code Context interface, check the boxes next to the code files you want to upload.

After selecting the files, click the Apply changes button.
CodeVista will upload and process the selected files.
Currently, CodeVista supports 57 file types and provides Code Symbols Parsing for 12 file types:
.java
.js
.php
.cs
.c
.cpp
.rb
.kt
.go
.rs
.py
.ts

Manage Uploaded Files

While you make changes to your code files, it's likely that you would like to sync the latest file changes to the "Code Context". You can do this by clicking on the Sync icon:
Or you can also turn on Auto-sync Changes to automatically apply changes to the code context.
To delete a file from the CodeVista system, check the boxes next to the files and click Apply to remove the file from code context.

After uploading and processing your code files, you can use other CodeVista features like code chatting, command prompting, or predefined workflows with the context from the uploaded code files.
Note: In Code Context, some files/folders might be hidden and restricted from selection, including their sub-items. These include:
  • Files that do not provide meaningful insights
  • Files with security concerns
For more information, please refer to this Knowledge Base Article: Hidden files in Code Context.

Add Context to Chat Conversations

CodeVista allows you to enhance chat queries by attaching relevant project components—like files, code snippets, or workspace entities—directly to your message.

This gives the AI deeper awareness of what you're working on, resulting in smarter and more accurate responses.

Follow the instructions below to make the most of CodeVista's Additional Context feature.

Add Context via Plus button

To browse your available context, click on the Plus icon:
CodeVista provides you with several context types, including Files, Code Snippets, Workspace and current file that you are working on. Select your desired additional context type to continue.

‍Note: For Files and Code, you can type key words into the search field to look for a specific result.

Besides, CodeVista also supports adding multiple contexts:
After your context is added, input your prompt and click Send to submit your prompt to CodeVista as usual:

Add Context via @ key

After your context is added, input your prompt and click Send to submit your prompt to CodeVista as usual:
Select your desired additional context type to continue.
Besides common prompt, you are also able to trigger predefined actions with additional contexts.

For example:
Previous
Action Commands
Next
Workspace Status
Last Modified 1 month ago
Knowledge Base
On this page
Upload Code ContextAdd Context to Chat Conversations