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:

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

  1. Click SourceCraft Code Assistant in the editor’s left panel.

    If you have many plugins, the chat button may be hidden in the menu.

    Alternatively, use Ctrl + L in Windows/Linux or Command + L in macOS.

  2. See the examples of queries under Code Assistant School.

    Click to update the examples.

    Click an example to use it.

Sending a message

Write your request to the AI assistant in the message input window and click or press Enter.

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 and select the right option in the pop-up window.

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 in the message input window.

Rating a response

Click or in the bottom-right corner of the AI assistant's response.

Displaying previous request to the AI assistant

In the message input window, click .

Opening a chat

In the editor's right-hand panel, click SourceCraft Code Assistant Chat.

Sending a message

Write your request to the AI assistant in the message input window and click or press Enter.

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 in the message input window.

Rating the response

Click or in the bottom-right corner of the AI assistant's response.

Chat history

Opening a new chat

Click New chat in the chat's top panel.

Viewing the list of chats

Click History in the chat's top panel.

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 button next to it, enter a new name, and press Enter.

To delete a chat from the list, click the button next to it.

Clearing a chat

Click Clean Chat in the chat's top panel.

Code blocks

Copying code from a chat

Hover over the code block and click in the top-right corner.

Pasting code from a chat into an open tab

Hover over the code block and click in the top-right corner.

Copying code from a chat

Click in the top-right corner of the code block.

SourceCraft Code Assistant settings

This feature is only available in Visual Studio Code.

Click Settings in the chat's top panel.

See also