You can edit your project code in the SourceCraft interface, including adding new files or directories. You can introduce changes directly into the repository branch or via a pull request.
The SourceCraft code editor comes with a built-in component called Code Assistant.
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 the AI assistant to analyze the code context and come up with the most relevant suggestions for functions, cycles, conditions, and other elements.
Code Assistant also features a chat mode you can use to interact with the AI assistant in the IDE interface.
Select the repository with the code you need to edit.
Under Code on the repository page, go to Branches.
Select the branch for editing.
Open the file that needs updates.
In the top-right corner, click Edit.
Start entering the text and see Code Assistant's suggestion.
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.
Select what to do with 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.
In the top-right corner, click Commit changes.
In the window that opens, configure the change parameters:
In the Commit message field, specify the comment describing the changes you have made.
Under Commit branch, select the branch you want to edit. If required, create a new branch.
Under After commit action, select how to make changes: via a commit or pull request.
Confirm your changes.
If you opt for a pull request, finish creating it.