mathworks / MATLAB-extension-for-vscode

This extension provides support for editing MATLAB® code in Visual Studio® Code and includes features such as syntax highlighting, code analysis, navigation support, and more.
https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab
MIT License
215 stars 13 forks source link

Vscode doesnt recognize matlab code files #134

Closed Fuzqui closed 2 months ago

Fuzqui commented 2 months ago

Hello,

I have installed the matlab extension on vscode. The connection works and I can run matlab code through the matlab terminal on vscode. But I don't have the run button, the highlighted syntax and all the features of the extension, it is as if vscode doesnt recognize the file as a matlab code file.

thanks for your help

Capture d’écran 2024-04-15 à 21 19 05
dklilley commented 2 months ago

Hi @Fuzqui , can you please let us know what language VS Code believes the file to be? This should display in the status bar, typically in the bottom right part of the window.

Fuzqui commented 2 months ago

vscode believes its octave and when I try to change it won't let me. Thanks for answering this fast

Capture d’écran 2024-04-15 à 21 29 51
dklilley commented 2 months ago

I suspect that there may be another extension which is interfering, as I do not believe VS Code provides support for Octave itself.

Can you check to see if there are any other MATLAB- or Octave-related extensions installed?

Fuzqui commented 2 months ago

you are right, I had the octave debugger ! it works now. thanks a lot !!!!

dklilley commented 2 months ago

Glad to hear it!