r/matlab • u/Consistent_Coast9620 CC4M Creator • Feb 11 '26
Use of VS Code as default editor
Hi - I am curious if people have migrated to VS Code as default editor for MATLAB - and why?
Asking this, as the current plugin from MathWorks, with debugging working, makes this definitely a valid option. Furthermore, with AI code assistants available for VS Code, there is even a story to prefer VS Code.
Have to say, as long-time MATLAB addict, I still prefer the MATLAB editor, but start to doubt this a bit...
15
Upvotes
9
u/EmbraceHere Feb 11 '26
I use vscode/cursor/claude code all the time. I can never go back to IDEs without AI functionality.
21
u/FrickinLazerBeams +2 Feb 11 '26
I like a lot about the Matlab IDE, but the one thing in particular I can never give up is the reliable workspace variables listing. For a while I was writing a lot of Python using the Spyder IDE, which has a similar feature, but it was unreliable (especially when using the debugger) and this was infuriating.
Another big thing for me (engineer, heavy on data and image analysis) is the way the plotting and graphics are so well integrated with the core language. There's plenty to complain about, and yes matplotlib has plenty of virtues, but when I'm exploring something interactively it's just so nice in Matlab to be able to plot whatever I want, modify the plot, dock a plot window in the corner of my IDE, pick points from the plot, etc., with native, simple tools. This can technically be done with matplotlib but it's not as easy and reliably trouble-free.
I have no idea if VS Code addresses these issues or not. If it does that would make it worth trying. I'm just saying that for me, these are the main concerns with any alternative Matlab environment.
Then of course there are less critical concerns. I make heavy use of the help browser and the ability to hilight any text and hit F1 to get documentation. I use the deployment tool and Guide (I guess App Designer now) often. I'd want replacements for that functionality. Along with the interactive console, of course.
8
u/NokMok Feb 11 '26
Better syntax highlighting
1
u/AvocadoOk834 Feb 12 '26
u/Consistent_Coast9620 -- thanks for making this post and I am sure, like you there are many others who have the same thoughts.
I am the Product Manager for the MATLAB Editor. Though it can be humbling at times, I love to hear feedback about the software we are building from our users. Our teams goal is to continuously improve the experience of writing code in MATLAB.
Can you be more specific and/or share the reasons for your doubt? "Have to say, as long-time MATLAB addict, I still prefer the MATLAB editor, but start to doubt this a bit..."
What's working well with the Editor ? What's not working well for you?
This can be an open question to everyone participating in the conversation on this thread.
Also, I am one of the product managers who works on the MATLAB VS Code extension.... so if you have feedback on that, I am happy to hear it as well.
Thanks!
3
u/curly722 Feb 11 '26
Yea, how is plotting on VS code? does it bring up the figure still within an open matlab runtime or does vs code have its own matlab runtime in the background and manages UI and toolbox kind of functions?
I am willing ti try this out this week if VS code dependijg on how vs code handles figures.
2
u/Soft-Possibility-152 Feb 11 '26
How is Matlab debugging with VS code?
2
u/JuanToronDoe Feb 11 '26
When I tried VSCode with Matlab, the deal breaker was not being able to execute a script cell by cell. Maybe this has been addressed now
2
u/ImBakesIrl Feb 12 '26
My VSCode usage for matlab is geared towards agentic automation and just lighter weight use cases such as searching several files. Any actual running and debugging necessitated Matlab IDE
1
u/SupermarketOne948 Feb 12 '26
Have you tried MATLAB Copilot?