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
234 stars 15 forks source link

Highlight current section (%%) #69

Open dklilley opened 11 months ago

dklilley commented 11 months ago

Splitting part of #8 into this feature request, as the other part of it has been resolved.

It would be great to have code sections highlighted similar to the MATLAB editor (or at least highlight the lines of code starting with %%).

goldrik commented 11 months ago

Just wanna +1 this issue. The lack of section highlighting on vscode reduces readability in my opinion, particularly for scripts which use sections as a way to delineate portions of a larger analysis pipeline.

goldrik commented 9 months ago

Code "sections" or "cells" can already be highlighted in python (using #%%), maybe sections on MATLAB could be highlighted in the same way (without the unnecessary text "Run Cell", "Run Below", etc). The section titles should also match the MATLAB formatting (bold, non-italic)

Screenshot 2024-01-05 at 1 04 34 PM 2
wohenbushuang commented 3 months ago

at least highlight the lines of code starting with %%

Though I made a duplicated issue #150 before, is there any updates on this issue?

dklilley commented 3 months ago

Unfortunately I do not have any updates at this time. However, this is still on our radar as functionality we would like to add!