Next Edit Autocomplete
Sweep supports next-edit prediction inside JetBrains!
This means that our autocomplete keeps track of your previous code changes, and uses these to create more complex suggestions.
In this case I added a max_depth
parameter to the function signature.
Sweep implements simple changes like adding the : int
typehint, and more complex changes like adding the max_depth
parameter to the function call.
It will even suggest edits to other similar functions, making it seamless.
How to Use Next Edit Autocomplete
- Search "Sweep Settings" inside JetBrains search (or press shift twice to open the search bar).
- Check Enable Next Edit Autocomplete and press OK
Tab / Shift + Tab to Accept Suggestions
The main keyboard shortcut is Tab, but if Tab is blocked (such as by JetBrain's dropdown), you can use Shift + Tab to accept the suggestions.
Disable conflicting plugins
You can disable GitHub Copilot here (opens in a new tab) and disable JetBrains AI here (opens in a new tab).
If a plugin is still conflicting, you can disable that plugin by visiting Settings > Plugins (opens in a new tab).
More improvements are in progress! Email team@sweep.dev or join our discord (opens in a new tab) for any feature requests/bug reports.