Integrate MATLAB into your VS Code workflow with the MATLAB extension for Visual Studio Code. Edit, run, and debug MATLAB code with syntax highlighting, code analysis, navigation, and more.
Use AI Coding Agents with MATLAB
Connect MATLAB to AI coding agents like GitHub Copilot with the MATLAB MCP Core Server for automated code execution and workflow integration.
Run MATLAB in Jupyter notebooks
Use MATLAB directly through Jupyter notebooks without needing to leave Visual Studio Code.
Two Ways to Use the Extension
Use basic editing features without needing to have MATLAB installed. Connect to MATLAB to run code or make use of the advanced features of the extension.
| Feature | Without MATLAB | With MATLAB R2021b or later |
| Syntax highlighting | ||
| Code snippets | ||
| Commenting | ||
| Code folding | ||
| Automatic code completion | — | |
| Code navigation (Go to Definition, Find References, etc.) | — | |
| Code outline | — | |
| Code analysis (diagnostics and automatic fixes) | — | |
| Source code formatting | — | |
| Symbol renaming | — | |
| Run files and selections | — | |
| Debugging (breakpoints, call stack, etc.) | — | |
| Jupyter Notebook support | — |