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

Create "Evaluate Selection in MATLAB Terminal" feature #195

Open
mjschroeder opened this issue Dec 19, 2024 · 0 comments
Open

Create "Evaluate Selection in MATLAB Terminal" feature #195

mjschroeder opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mjschroeder
Copy link

In MATLAB, you can right-click on a selection and use the "Evaluate Selection in Command Window" option from the context menu to execute the selected code.

Right now, the only similar option in VS Code is "Evaluate in Debug Console", which executes the code in the VS console and not in the MATLAB terminal (which throws a suitable warning).

I suggest adding the option for "Evaluate Selection in MATLAB Terminal". Bonus points for assigning F9 as the keyboard shortcut to mimic MATLAB (I think F9 is already assigned, so some other single-key shortcut would be okay).

MATLAB behavior:

Screenshot 2024-12-19 071812

VS Code Behavior:

Screenshot 2024-12-19 070912

Screenshot 2024-12-19 070941

@mjschroeder mjschroeder added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant