MATLAB-extension-for-vscode
MATLAB-extension-for-vscode copied to clipboard
Feature request: select MATLAB install path
Hello,
thanks for this first release of the MATLAB VS Code extension, it is very welcome!
As I have multiple MATLAB installations installed I'd like to be able to select one of these. This is implemented in the Python extension for VS Code. It is is possible to select a default interpreter and also add multiple interpreters. Also Python interpreters are detected automatically.
It would be nice to have similar functionality for MATLAB VS Code extension.
Keep up the good work!
--Han
Are you referring to the "Python: Select Interpreter" command in VS Code?
Currently you can change the MATLAB installation being used via the matlab.installPath setting by providing a path, similar to the python.defaultInterpreterPath setting.
Hi Duncan,
thanks for your prompt response.
I did mention "Python: Select Interpreter" as an example how to control the matlab.installPath setting.
As an example: I have installed several Python interpreters,
The default one is 3.7, as shown below:
However I am able to select 3.9.7, 3.8.3. etc. It would be nice when the MATLAB extension would have a setting for default, while enabling the user to switch to another MATLAB version. Maybe you could add automatic detection, looking for MATLAB in default locations ("C:\Program Files\MATLAB" for 64 bit, "C:\Program Files (x86)\MATLAB" for 32 bit) and using the settings of PATH.
Hope this clarifies the feature request.
--Han