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 packageRemember 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-settingsfile to your clients (copy-paste if you have none). - Modify paths accordingly.
MATLAB path should look like
/usr/local/MATLAB/R2023a(in linux). Usematlabrootwithin MATLAB to get its value.Tested in Ubuntu 20.04, steps my vary in other distributions or OS's.