Jas
Jas

Reputation: 15093

ideavim in intellij is there a shortcut to goto next error?

I'm now in a file, I want to hit and it will go to next compilation error in my file i fix it, then hit again the shortcut will go to next error and so forth... i'm already in my text file i cant find how to navigate to next error while editing my text file.

Upvotes: 10

Views: 4400

Answers (2)

balki
balki

Reputation: 27664

You can set shortcuts for intellij actions in ideavim. Below lines set gn and gp for next and previous errors.

% cat ~/.ideavimrc
nnoremap gn :action GotoNextError<CR>
nnoremap gp :action GotoPreviousError<CR>

More details: Useful customizations in .ideavimrc

Actionlist: https://gist.github.com/zchee/9c78f91cc5ad771c1f5d

Docs: https://github.com/JetBrains/ideavim#executing-ide-actions

Upvotes: 15

Kent
Kent

Reputation: 195049

I am just starting using intellij (changed from Eclipse) recently. For your question:

Right click the scroll bar, in the popup menu, choose the one (radio button) you need.

then in editor, press F2 to jump to next error/problem. shift-F2 back.

btw, this is not a ideavim shortcut.

Upvotes: 11

Related Questions