positron icon indicating copy to clipboard operation
positron copied to clipboard

Re-Run Previous Region

Open e-kotov opened this issue 8 months ago • 1 comments

One thing I used in RStudio a lot was Re-Run Previous Region aka Re-run Previous Code Execution.

Reminder that basically this runs the last range of lines or selected code. Very convenient for quick iteration and editing.

I could not find similar feature in Positron (or VScode, for that matter), or any extension that would do this trick.

Would be nice to see this feature.

e-kotov avatar May 15 '25 15:05 e-kotov

You're correct, this feature does not exist in Positron! We'll consider it for inclusion in a future version.

jmcphers avatar May 15 '25 15:05 jmcphers

Hey all, I second the need for adding a feature that would allow us to re-run the previous lines of code. I used this a lot in R Studio to update graphs and debug data cleaning errors and it was such an incredible feature. My workflow in Positron so far is slower because I have to always go back to the top and highlight the code I just ran when I'm just updating one part of it. So yes I would also love to see this feature added.

frumh002 avatar Jul 21 '25 13:07 frumh002

i will bow to the alter of the Positron gods for a rerun previous shortcut. its the only feature preventing me from abandoning RStudio for good and making the full time switch to Positron

Henryjean avatar Aug 27 '25 23:08 Henryjean

The recent addition of alt+enter to execute lines without advancing to next lines somewhat solves this, but not completely.

e-kotov avatar Aug 27 '25 23:08 e-kotov