SourceCraft Code Assistant chat
The Code Assistant plugin has a built-in chat you can use to interact with the AI assistant right from the IDE interface.
The following scenarios are supported:
- Generation of code snippets.
- Explanations of code in project files or their separate sections, including markdown syntax, which you can further use in documentation.
- Assistance in debugging and troubleshooting.
- Generating tests for your code.
- Generating documentation.
- Scanning code for potential issues.
- Suggesting improvements and alternative solutions.
- Generating charts.
- Writing commit messages.
Functionality varies depending on the IDE you are using.
Note
The interface language of the Visual Studio Code plugin depends on the selected IDE language.
Sending messages
Opening a chat
-
Click
If you have many plugins, the chat button may be hidden in the
Alternatively, use Ctrl + L in Windows/Linux or Command + L in macOS.
-
See the examples of queries under Code Assistant School.
Click
Click an example to use it.
Sending a message
Write your request to the AI assistant in the message input window and click
For a line break in the message, press Ctrl + Enter for Windows or Linux or Command + Enter for macOS.
To reassign line break to Enter and message sending to Ctrl/Command + Enter, hover over
You can ask questions in any language.
Note
The AI assistant uses the open editor tab or selected code block for context.
Stopping response generation
If, for example, you change your mind and want to rephrase your question, click
Rating a response
Click
Displaying previous request to the AI assistant
In the message input window, click
Opening a chat
In the editor's right-hand panel, click
Sending a message
Write your request to the AI assistant in the message input window and click
For a line break in the message, press Shift + Enter.
You can ask questions in any language.
Note
The AI assistant uses the open editor tab or selected code block for context.
Stopping response generation
If, for example, you change your mind and want to rephrase your question, click
Rating the response
Click
Chat history
Opening a new chat
Click
Viewing the list of chats
Click
From the list that opens, select the chat you want to go back to.
The names for chats are created automatically. To rename a chat, click the
To delete a chat from the list, click the
Clearing a chat
Click
Code blocks
Copying code from a chat
Hover over the code block and click
Pasting code from a chat into an open tab
Hover over the code block and click
Copying code from a chat
Click
SourceCraft Code Assistant settings
This feature is only available in Visual Studio Code.
Click