Chat Conversation
The chat feature is the primary way to interact with CodeVista and leverage its AI-powered coding assistance capabilities.
To begin, type your coding question, task, or command into the prompt input box.
Be as specific as possible when describing the problem, desired outcome, or task you need assistance with.
You can include code snippets, error messages, or any other relevant information in your prompt.
Copy and Save Prompt
After a prompt is sent to CodeVista, you can copy or save that prompt for later use.
Copy a prompt
To copy any message, simply hover over the desired message and click the Copy message icon that appears in the bottom-right corner.
Save a prompt
To save a prompt, hover over the submitted prompt and click the Save button:
In the Save Your Prompt panel, enter Prompt Name for easier recall later (for instance: python1), and modify the prompt if needed before clicking Save Prompt button:
Re-use a Prompt
CodeVista allows you to recall your saved prompts or make use of over 50 ready-to-use prompts for common coding tasks.
To do that, you just need to access the Prompt Library by clicking the icon shown below.
After opening the Prompt Library, you can select My Prompts or Public Prompts for suitable use.
βMy Promptsβ
To re-use, edit or delete saved prompt, select My Prompts in Prompt Library and click the relevant button:
Public Prompts
Prompt Library provides a collection of over 50 ready-to-use prompts for common coding tasks, aiming to make your coding more efficient and productive.
To use a prompt from Public Prompt Library, select Public Prompts in Prompt Library and select a prompt from the list:
Check out the Prompt Code Translate in Prompt Library for instance:
You can:
- Select Use Prompt to insert this template to chat input area
- Select Save as new My Prompt to save this template to My Prompts Library.
LLM Model Selection
You can select an AI Model from the drop-down button under the chat box.
AI Model Selection Menu
CodeVista provides a list of advanced AI models:
- Claude 3.7 Sonnet (Recommended for coding)
- Claude 3.5 Sonnet
- OpenAI GPT-4o
- Gemini 2.0 Flash
- Gemini 2.0 Pro
Alternatively, you can select Auto Model, and the system will automatically pick the best one based on your query.
CodeVista displays the input length of your prompt in real-time, along with the maximum input length allowed for the chosen AI model.
β
The input length is measured in tokens, which are roughly equivalent to words or characters, depending on the language.
β
Here are the maximum input length limits for different models:
Model |
Max Input Length (Tokens) |
OpenAI GPT-4o |
4096 |
Gemini 2.0 Flash |
8192 |
Claude 3.5 Sonnet |
8192 |
Claude 3.7 Sonnet |
8192 |
Gemini 2.5 Pro |
65536 |
If your prompt exceeds the input length limit, CodeVista will truncate the oldest messages from the context to accommodate the new input.
β
You can learn more about tokens and their calculation in
this article from OpenAI.
β
By understanding and effectively using the code context, combining predefined actions with context, and being mindful of input length limits, you can significantly enhance the quality and accuracy of the assistance provided by CodeVista.
Add Context to Chat Conversations
Prompt Improvement
CodeVista as well assists you input prompts by offering to enhance the questions or requests before submission.
First, type in your question or request, then select the button Improve:
CodeVista then provides user with a better, clearer and more accurate prompt. You can additionally try to modify or improve the prompt once more before sending to CodeVista.
Suggested Prompt
After each response, CodeVista may display up to three suggested prompts related to the current context.
To enable this, go to Settings >> Configurations and enable 'Suggest next prompts':
After this, when you enter and send your coding-related question, you can select the icon highlighted in the figure below and click on a suggested prompt to populate it in the prompt input box for easy editing or submission.
Reviewing Response
After submitting your prompt, CodeVista will process it and provide a response in the chat window. Responses may include code snippets, explanations, or suggestions related to your prompt.
- Insert code at cursor
- Replace selected code
- Copy to clipboard
You can also copy the response by clicking the Copy message button at the bottom right corner of each response.
Conversation History
Create New Chat Conversation
To start a new chat, click New Conversation in the top-right corner of the CodeVista panel.
View Conversation History
To view all your conversations, click the History icon in the top-right corner of the chat window.
Your chat conversations are displayed in chronological order, with the most recent ones at the top.
They are categorized into Today, Yesterday, Previous 7 days and Remaining conversations sections.
To find a specific conversation, use the search bar at the top.
Manage Chat Conversations
After viewing the list of chat conversations, you can Edit or Delete a chat by clicking the three-dot icon next to it.