I try to customize my ~/_ideavim like this
nmap za :action ReformatCode<CR>
nmap zb :action RiderUnitTestRunSolutionAction<CR>
nmap zc :action ReformatCode<CR>:action RiderUnitTestRunSolutionAction<CR>
When I try press za or zb it works very well.
It will format my code or run the unit tests.
But when I try to combine two actions like zc,
only the last action works.
Is it possible run test after reformat?
You can run multiple commands at once with the |
nmap zc :action ReformatCode \| action RiderUnitTestRunSolutionAction<CR>
For me this was the solution:
map <leader>f <Action>(ReformatCode)<Action>(OptimizeImports)
This will ReformatCode and OptimizeImports
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With