Skip to content

sweepai/jetbrains_plugin

Repository files navigation

Jetbrains Extension for Sweep

Open in IntelliJ and click Run Plugin on the top right corner. And then download required packages.

Customizing Autocomplete Keystrokes

The autocomplete accept and reject keystrokes are fully customizable via IntelliJ's keymap settings:

Default Keystrokes

  • Accept Completion: Tab
  • Reject Completion: Escape

How to Customize

  1. Open Settings/PreferencesKeymap
  2. Search for "Accept Edit Completion" or "Reject Edit Completion"
  3. Right-click on the action and select "Add Keyboard Shortcut"
  4. Assign your preferred keystroke (e.g., Enter, Ctrl+Space, etc.)
  5. The plugin will automatically adapt to your custom keystrokes without requiring a restart

Note: The keystroke must map to a standard editor action (like TAB, ENTER, ESCAPE, arrow keys, etc.) to be intercepted reliably. Custom key combinations that don't correspond to editor actions may not work.

IdeaVim Integration

For IdeaVim users, put in your ~/.ideavimrc:

sethandler <Tab> a:ide

Or if it doesn't work:

map <Tab> :action dev.sweep.assistant.autocomplete.edit.AcceptEditCompletionAction<CR>

You can also customize the IdeaVim mapping to use different keys:

" Use Enter to accept completions
map <CR> :action dev.sweep.assistant.autocomplete.edit.AcceptEditCompletionAction<CR>

" Use Ctrl+Y to reject completions
map <C-y> :action dev.sweep.assistant.autocomplete.edit.RejectEditCompletionAction<CR>

About

Sweep AI Assistant JetBrains Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages