https://github.com/mrdandelion6/matlab-extra-support
VS Code extension providing extra support for MATLAB integration. Provides the ability to run individual sections of MATLAB files directly from VS Code.
https://github.com/mrdandelion6/matlab-extra-support
extension matlab typescript visual-studio-code yo-generator
Last synced: 5 months ago
JSON representation
VS Code extension providing extra support for MATLAB integration. Provides the ability to run individual sections of MATLAB files directly from VS Code.
- Host: GitHub
- URL: https://github.com/mrdandelion6/matlab-extra-support
- Owner: mrdandelion6
- License: mit
- Created: 2024-05-15T22:35:18.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T21:22:58.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T19:46:31.130Z (12 months ago)
- Topics: extension, matlab, typescript, visual-studio-code, yo-generator
- Language: TypeScript
- Homepage:
- Size: 2.63 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# MATLAB Extra Support
This Visual Studio code extension provides additional features to the MATLAB extension by *MathWorks*. Users can run individual sections of code in a MATLAB file directly inside VS Code.

## Usage and Features
To run a particular section of code, have your cursor within that section and then run the `Run Current Section` command through command palette or by pressing **ctrl + enter**. Note that "sections" in MATLAB files are lines of code separated by `%%`. For example the following code has two sections.
```matlab
%%
x = 1;
disp(x);
%%
y = x + 2;
disp(y);
```
You can also run the current section of code and all code above it by pressing **ctrl + shift + enter** or using the `Run Current Section and all Above` command through command palette.
Supports Windows, Mac, and Linux.
## Requirements
This extension requires you to have the VS Code extension *MATLAB* by *MathWorks* installed.
## Known Issues
Currently there is an issue with the workspace variables persisting across different MATLAB terminal sessions. This is because of how the MATLAB extension by *MathWorks* works. I am working on a solution to reset the workspace each time but I am not yet sure how to since the MATLAB shell does not work like a normal terminal.
Feel free to open an issue if you find any problems, or even a PR if you have any solutions.
## Release Notes
Users appreciate release notes as you update your extension.
### 1.0.0
Initial release.