-
Notifications
You must be signed in to change notification settings - Fork 10
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
Recognize and run code blocks #13
Comments
Thanks for your feedback! You mean that this feature would be able to run blocks one after the other, a bit like Jupyter? |
Yes, similar to that. The idea of code blocks or code cells. The Matlab IDE does this itself using One more thing I'd add on is to have the focus stay in the editor when code (selection, line, block, etc.) is run. Currently it always takes me to the terminal and I have to click back into the editor to run the next line. These would be nice features. I'm not sure how complicated they would be. |
Here is my workaround for cell evaluation: This solution requires the Vim extension.
I have also mapped <Ctrl+A> to toggle focus between the editor and terminal. |
Check out this issue/pullrequest Adding "Cursor Back to Editor" function for "Run Current Selection". It solves your second problem. |
I think "splitting code into blocks" should be an independent functionality. I'm working on it. Here is a demo. I'll integrate it into this extension soon and hope can implement the "run code blocks" functionality. |
Almost done (if there is no unexpected bugs). |
Just a feature suggestion. The ability to run blocks of code delimited by
%%
would be very useful. Thanks for the great extension!The text was updated successfully, but these errors were encountered: