JetBrains Rider plugin to enable navigation over blocks of code (like Vim next/previous blank line).
RiderBlockJumper is an extension for Rider that allows you to jump over blocks of code. Available on the JetBrains Plugins Repository.
Jumping takes you outside of the nearest block edge (i.e. the whitespace line adjacent to a block). If the cursor reaches BOF or EOF, we jump there instead.
Due to existing keybindings within Rider, I was unable to provide my ideal default keybindings. I’ve listed my preferences here, and encourage you to update your keybindings by assigning your own actions (Ctrl + Shift + A
).
Command | Description | Keybinding (Default) | Keybinding (Ideal) |
---|---|---|---|
Edit.JumpUp |
Jump to the closest block edge above the cursor | Alt+Page Up |
Ctrl+Up |
Edit.JumpDown |
Jump to the closest block edge below the cursor | Alt+Page Down |
Ctrl+Down |
Edit.JumpSelectUp |
Jump Up and add to the active selection | Alt+Shift+Page Up |
Ctrl+Shift+Up |
Edit.JumpSelectDown |
Jump Down and add to the active selection | Alt+Shift+Page Down |
Ctrl+Shift+Down |
Settings can be found under File>Settings...>Editor>Block Jumper
Setting | Description | Default |
---|---|---|
JumpOutsideEdge |
If enabled, the cursor will jump outside of the block edge (blank line), otherwise it jumps inside the block edge (text line) | true |
SkipClosestEdge |
If enabled, the cursor will only jump to the far edge of a block, otherwise it visits every edge of a block | false |