posit-dev / positron

Positron, a next-generation data science IDE
Other
2.39k stars 70 forks source link

Add keyboard shortcuts for running code before/after the cursor #4395

Open juliasilge opened 3 weeks ago

juliasilge commented 3 weeks ago

Discussed in https://github.com/posit-dev/positron/discussions/4389

Originally posted by **vartimaios** August 19, 2024 R Studio has the shortcuts Ctrl + Alt + B to run the code from the beginning of the script to the cursor or Ctrl + Alt + E to run from the cursor to the end. Could we add these or equivalent shortcuts in Positron? They really increase efficiency when you want to make small changes in the code and re-run it.

We could associate such shortcuts with the console and have them apply to both Python and R.

asadow commented 3 weeks ago

From VS Code R: image