Change StepperStep forwards and backwards through a large single change (insert or suggestion accept) or selection, by line and word. This is useful if you only want to use parts of a large suggestion by, for instance, Github Copilot. FeaturesAfter making a large change, like accepting a suggestion from Github Copilot, you can step forwards and backwards through the change by line or word using the following commands:
HJKL are the "arrow" keys in Vi, but you're free to use any keybindings you like. I personally swap J and K around. If you start off by going backwards, you start from the end of the change. If you start off by going forwards, you start from the beginning of the change. You can also select some text, and initiate the stepping with any of the commands to step through the selection. Extension SettingsCurrently the only settings are the keybindings. If you want to change them, you can do so in the Keyboard Shortcuts editor. Hit InstallationYou can install this extension:
Known IssuesVSCode has built in support for stepping through suggestions, as of January 2023. This is better integrated, but it doesn't yet support stepping through by line, or even words beyond the first line. Once VSCode supports stepping through by line, this extension will probably be unnecessary. Release Notes1.0.0Initial release of Change Stepper |