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:

This chat has context and rules settings, as well as a prompt library.

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.

Learn more about 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.

Learn more about 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

On the panel above the code block you will now see the programming language it was written in.

Copying code from a chat

In the right-hand corner of the panel above the code block, click .

Pasting code from a chat into an open tab

In the right-hand corner of the panel above the code block, click .

Expanding and collapsing a code block

To make it easier to navigate the chat, the system automatically collapses large blocks of code. To expand or collapse a code block, click or under it.

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