Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
/ RiderBlockJumper Public archive

JetBrains Rider plugin to enable navigation over blocks of code (like Vim next/previous blank line).

License

Notifications You must be signed in to change notification settings

Nightro/RiderBlockJumper

Repository files navigation

RiderBlockJumper

Rider

RiderBlockJumper is an extension for Rider that allows you to jump over blocks of code. Available on the JetBrains Plugins Repository.

Demo

Usage

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.

Commands

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

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

Credits and Thanks

  • Casey Muratory - I first saw this method for navigating code in his Handmade Hero video series
  • Matthias Koch - For helping me get started and putting me in the Jetbrains PluginWriters slack
  • Space Block Jumper - I use this extension for the same purpose as RiderBlockJumper in VSCode
  • Anthony Reddan - That's me!

RiderBlockJumper