v1.8
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
Autofix
Inline Chat
Web Search
Feedback System
Prototyper Agent
💲 Usage Quotas❗️ Instructions for Internal FPT Users
❔ FAQ
Visit xVista Homepage

Code Context

The Code Context feature in CodeVista allows you to enhance your prompts by either manually adding context or synchronizing code files that are currently open in your workspace with the CodeVista context system.
This added context improves the accuracy and relevance of the following extension features:
  • Chat Conversations
  • Predefined Workflows
  • Action Commands
CodeVista supports uploading up to 500 files. Supported file types include C, C++, Java, JavaScript, PHP, Python, Ruby, Go, Rust, TypeScript, and Kotlin.

Upload 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 synchronize the latest file changes to the "Code Context". You can do this by clicking on the Sync or you can also turn on the Auto-sync to automatic apply changes to the code context.
To delete a file from the CodeVista system, uncheck the box next to the file 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.
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, Terminal output, and current file that you are working on. Select your desired additional context type to continue.
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

Alternatively, you can add your desired contexts by typing '@' in the chat input area, and the supported context types are displayed.
Select your desired additional context type to continue.
Besides common prompt, you are also able to trigger predefined actions with additional contexts.
For example:
Contexts added using the plus (+) icon stay in the chat input after you send the message. Contexts added with the @ icon do not.

Previous
CodeVista Streak
Next
Workspace Status
Last Modified 1 month ago
Knowledge Base
On this page
Upload Code ContextAdd Context to Chat Conversations