How to add “Program Files” in VS Code settings
Use "C:\Program Files\..."
or C:\"Program Files"\...
How to write MATLAB scripts in VSCode
However, I find it not a good idea. The terminal crashes from time to time and Workspace
in MATLAB cannot be integrated into vscode.
The main reason I want to use vscode to write MATLAB scripts is darkmode and suggestions. By changing the color profile and enabling autocompletion in MATLAB preferences, I can get a similar result.
Install Extensions
1 | Matlab # highlighting, suggestions, error messages |
Install MATLAB API for Python
The extension Matlab Interactive Terminal
is based on matlab api for python. Follow this doc to install matlab api for python.
In Windows, cd matlabRootPath\extern\engines\python
, then python setup.py install
.