Here are the settings to get the official language server working within Sublime. See MATLAB-language-server.
git clone https://github.com/mathworks/MATLAB-language-server
cd MATLAB-language-server/
npm install && npm run compile && npm run package
Remember the PATH in which you installed this.
Needs MATLAB 2021+.
- Clone this repo:
git clone https://github.com/kurokirasama/matlab_lsp_sublime
- In sublime text install the LSP package.
- Open
Preferences > Package Settings > LSP > Settings
- Add the content of the
lsp-matlab.sublime-settings
file to your clients (copy-paste if you have none). - Modify paths accordingly.
MATLAB path should look like
/usr/local/MATLAB/R2023a
(in linux). Usematlabroot
within MATLAB to get its value.Tested in Ubuntu 20.04, steps my vary in other distributions or OS's.