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 ActionsCodeVista Streak
Code Context
Workspace Status
Autocomplete
Autodoc
Autofix
Inline Chat
Web Search
Feedback System
Planner 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
Note: CodeVista supports uploading up to 500 files. Supported file types include C, C++, Java, JavaScript, PHP, Python, Ruby, Go, Rust, TypeScript, and Kotlin.

Code Context Workspace

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

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.

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:
Alternatively, you can enable the Auto-sync context feature to automatically apply changes to the Code Context.
To remove a file from the CodeVista system, uncheck next to the desired files and click Apply Changes to delete them from the Code Context.
After your code files are uploaded and processed, you can utilize other CodeVista features, such as Action Commands or Autofix, with context from the uploaded 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

Add Context via Plus button

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 instructions to make the best out of CodeVista's Additional Context feature:‍
Step 1: To browse your available context, click on the Plus icon:
Step 2: 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:
Step 3: After your context is added, input your prompt and click Send to submit your prompt to CodeVista as usual:
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

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:
Previous
CodeVista Streak
Next
Workspace Status
Last Modified 1 month ago
Knowledge Base
On this page
Code Context WorkspaceAdd Context to Chat Conversations