Home > Back-end >  Color parentheses groups in MATLAB's IDE
Color parentheses groups in MATLAB's IDE

Time:06-11

Is there a way to make Matlab color matching parentheses?

A = max(B(:,3))

where the function parentheses for max() should have the same color, as well as the indexing parentheses B(:,3) having a different one.

CodePudding user response:

Well this is not a full answer to the question, but it made me change one of my settings, so for what it's worth:

By default in MATLAB editor when you click on a parenthesis, an underscore appears under this parenthesis and the matching one. This can be changed in the settings so that instead of having an underscore, your matching parenthesis will be highlighted, which I find clearer:

Preferences

Select "Highlight" for the "Match on arrow key" option.

It's gonna look like that:

demo

  • Related