Getting started with SourceCraft Code Assistant

Warning

SourceCraft uses the capabilities of AI models within Yandex. For this to work, some of your organization's data needs to be sent to Yandex. For more information, see the terms of use.

Code Assistant is an AI-driven developer assistant based on large language models (LLM)s. With Code Assistant, you can optimize the code writing process and increase your performance.

The smart autocompletion mode enables AI assistant to analyze the code context and come up with the most relevant suggestions for functions, cycles, conditions, and more.

Code Assistant also features a chat mode you can use to interact with the AI assistant in SourceCraft or your IDE interface.

SourceCraft Code Assistant terms of use

Warning

The Code Assistant plugin is now available for Visual Studio Code, VSCodium, and JetBrains IDE versions 2025.2, 2025.1, 2024.3, 2024.2, and 2024.1.

To get started:

  1. Get ready.
  2. Install and configure the plugin.
  3. Test the plugin.
  4. Manage the plugin.

Getting started

Sign up for SourceCraft.

Install and configure the plugin

  1. Download the Code Assistant plugin for Visual Studio Code.

    If you cannot download it for any reason, contact your system administrator so that they open network access to SourceCraft resources.

  2. Install the plugin:

    1. Open Visual Studio Code.

    2. Open Command Palette by pressing Ctrl + Shift + P for Windows or Linux or Command + Shift + P for macOS.

    3. Enter Extensions: Install from VSIX... and select the plugin file you downloaded before.

      The installation process will finish saying Completed installing extension.

    You can also install Code Assistant through the Visual Studio Code CLI using this command:

    code --install-extension <path_to_plugin>
    
  3. To get started with Code Assistant, get authenticated in SourceCraft:

    1. In the No active session found. Log in please pop-up window, click Go to browser.

      To re-authenticate in the plugin or log in as a different SourceCraft user, enter >SourceCraft Code Assistant in the top search bar. From the list that opens, select SourceCraft Code Assistant: Login.

    2. Allow Visual Studio Code to open the authentication page in your browser.

    3. In your browser, go to the SourceCraft home page and click Open app in the pop-up window.

    4. Go back to Visual Studio Code.

If the plugin is enabled and ready to go, you will see in the editor's bottom panel.

Click this icon to view the username of the SourceCraft account authenticated in the plugin. You can find the username in the Logged in as row of the list. If no user is authenticated, this row will be missing.

image

Note

If you previously installed SourceCraft Code Assistant plugin for the JetBrains IDE from a downloadable ZIP archive, uninstall the plugin and reinstall it using the guide below.

  1. Install the plugin:

    1. In the JetBrains IDE interface, click in the upper right corner and select Plugins....

    2. At the top of the plugin settings window that opens, click and select Manage Plugin Repositories....

    3. In the window that opens, click , enter https://proxy.src.yandexcloud.net/proxy/plugin/jetbrains/stable in the field that appears, and click OK.

    4. At the top of the settings window, go to the Marketplace tab and select the SourceCraft Code Assistant plugin. If required, use the search bar.

    5. Click Install.

    6. After installation is complete, click OK.

      If the plugin is installed successfully, you will see the Code Assist plugin started message in the IDE notification area.

    7. Restart the IDE.

  2. Enable automatic updates of the SourceCraft Code Assistant plugin:

    1. In the JetBrains IDE interface, click in the upper right corner and select Settings....
    2. Go to Appearance & BehaviorSystem SettingsUpdates and enable Update plugins automatically.
    3. Click OK.
  3. To get started with Code Assistant, get authenticated in SourceCraft:

    1. In the SourceCraft Code Assistant OAuth pop-up window, click SourceCraft Code Assistant: Login.

      To re-authenticate in the plugin or log in as a different SourceCraft user, click in the top right corner of the editor, enter SourceCraft Code Assistant in the window that opens, and select SourceCraft Code Assistant: Login.

    2. In your browser, open the SourceCraft home page page.

    3. Go back to the IDE.

If the plugin is enabled and ready to go, you will see in the editor's bottom panel.

Click this icon to view the username of the SourceCraft account authenticated in the plugin. You can find the username in the Logged in as line of the message you get. If no user is authenticated, the message will display No Auth data.

image

Tip

If the plugin failed to start, or you do not see suggestions from Code Assistant, try restarting the IDE.

Test the plugin

Note

To work with Code Assistant, you will need continuous internet access.

The smart autocompletion mode explicitly supports code autocompletion for the following programming languages and frameworks:

  • C++
  • Go
  • Java
  • JavaScript/TypeScript
  • Kotlin
  • Python
  • Scala
  • SQL
  • Swift

Autocompletion may also work for other languages. For languages ​​that are less represented in public repositories, the number and quality of autocompletion prompts will be lower.

Code Assistant analyzes your code context and provides the following types of suggestions:

  • Automatic.
  • User-triggered (Ctrl + Space). In Visual Studio Code, you can also use Ctrl + Enter.

How to work with Code Assistant:

  1. Open the IDE and create a test file named server.cpp with the following contents:

    // simple web-server to work with sockets
    
    #include <iostream>
    #include <string>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <unistd.h>
    
    using namespace std;
    
    int main() {
    
    }
    
  2. In the int main() section, start typing something, e.g., //create socket. See the Code Assistant suggestion:

    ...
    int main() {
    
    //create socket
    int sockfd = socket(AF_INET, SOCK_STREAM, 0);
    
    }
    
  3. Select an action for the suggestion:

    • Click Tab to accept the suggestion.
    • To start accepting the suggestion word by word, press Ctrl + for Windows or Linux or Command + for macOS.
    • To discard the suggestion, press Esc.
    • If there are multiple suggestions, you can switch between them using Alt + [ and Alt + ] for Windows or Linux or Option + [ and Option + ] for macOS.

    image

    • Click Tab to accept the suggestion.
    • To discard the suggestion, press Esc.

    image

You can also watch our Code Assistant here video tutorial.

Also test quick actions and the plugin's performance in agent mode in Visual Studio Code or chat mode in the JetBRains IDE.

Suggestion indicator

When generating a suggestion, the loading icon will appear to the left of the editable code. If generation stops or there is no result, you will see the (no suggestion) icon.

The suggestion indicator is enabled by default.

To enable or disable the indicator:

  1. In the left-hand panel, click .
  2. In the panel that opens, select Settings.
  3. Navigate to Autocompletion.
  4. In the settings window that opens, enable or disable the Code Assistant suggestion indicator and Code Assistant load indicator.

image

  1. In the top-right corner, click and select Settings....
  2. In the left-hand column, select SourceCraft Code Assistant.
  3. Enable or disable Disable suggest indicator.
  4. To save the settings, click Apply.

image

Manage the plugin

Enable or disable auto suggestions

You can enable or disable auto suggestions only in Visual Studio Code.

  1. Click in the Visual Studio Code bottom panel.
  2. In the list that opens, select Enable SourceCraft Code Assistant autocomplete or Disable SourceCraft Code Assistant autocomplete.

image

Update the plugin

Once you run the plugin, it will automatically check for an update and install it.

To force an update, in the editor’s bottom panel, click and select Check For Updates from the list that opens.

Once you run the plugin, it will automatically check for an update.

If you did not set up automatic plugin updates, you can update it manually:

  1. In the top-right corner, click and select Plugins....
  2. Select SourceCraft Code Assistant.
  3. If an update is available for the plugin, you will see the Update button. Click it.

Log out of the SourceCraft profile

To log out of your SourceCraft profile in the Code Assistant plugin:

In Visual Studio Code, there are two ways to log out of your profile:

  • In the editor’s bottom panel, click and select Logout from the list that opens.

  • In the top search bar, enter >SourceCraft Code Assistant. From the list that appears, select SourceCraft Code Assistant: Logout.

In the top right corner of the editor, click , enter SourceCraft Code Assistant in the window that opens, and select SourceCraft Code Assistant: Logout.

image

To re-authenticate in the plugin, follow the instructions described in step 3 of Install and configure the plugin.

Remove the plugin

  1. Open the list of installed plugins by pressing Ctrl + Shift + X for Windows or Linux or Command + Shift + X for macOS.
  2. In the SourceCraft Code Assistant row, click and select Uninstall.

image

  1. Open settings by pressing Ctrl + Alt + S for Windows or Linux or Command + , for macOS.
  2. Go to the Plugins section and select the SourceCraft Code Assistant plugin.
  3. In the plugin description section, click and select Uninstall.
  4. Confirm deletion and click OK.

image

See also

The SourceCraft Code Assistant plugin for Visual Studio Code uses Roo Code.

Copyright 2025 Roo Code, Inc.

Apache-2.0 license

Modified files