Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run line of code (or chunk) by Ctrl + Enter and automatically include entire chunk, advancing cursor to the next line / chunk #1508

Open
RInterested opened this issue Apr 5, 2024 · 1 comment

Comments

@RInterested
Copy link

In RStudio when you run code line-by-line the cursor automatically advances down to the next line, and if it is a chunk of code broken into several lines, it runs the entire statement across multiple lines, advancing the cursor down. So you can run the entire file by just keep pressing Ctrl + Enter.

I haven't found a way to accomplish that, and I hope it is already there, or a consideration for the future.

Thank you.

@albertosantini
Copy link

albertosantini commented Apr 16, 2024

Well, here it works in the way you described, like in RStudio.

if it is a chunk of code broken into several lines,

I think the point is what you intend for a chunk of code.

Can you drop here e few lines offending this behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants