v1.7
Select IDE
Visual Studio CodeIntelliJVisual Studio
Home
Blog
Release History
Download
ℹ️ IntroductionπŸ›  Installation
πŸ†” Log In
πŸ’» Features
Chat ConversationAction Commands
Code Context
Workspace Status
Autocomplete
Autodoc
Autofix
Inline Chat
Cross-check
Web Search
Feedback System
πŸ’² Usage Quotas❗️ Special Instructions for Internal FPT Users
❔ FAQ
πŸ”₯ What's New
Visit Website

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:

Code Context Workspace

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.

Code Symbol References

After CodeVista finished indexing the code context, the code entities within the uploaded files will be available for the Action Commands.
‍
‍
Below are some supported code entities:
‍@file:fileName
@function:functionName
@class:className
You can chain an Action Command to the indexed entities.
‍
For example:
‍/explain updateStatus(index.ts)
By mastering the grammar of ActionCommands and Code Entities, you can significantly improve your workflow efficiency.
Previous
Action Commands
Next
Workspace Status
Last Modified 1 month ago
Knowledge Base
On this page
Code Context WorkspaceCode Symbol References