How to turn off text highlighting/ variable usage counting in 2023a
Show older comments
When I select a variable, Matlab highlights all of the usages of that variable and counts how many there are.
How can I turn this feature off?
4 Comments
Dyuman Joshi
on 25 Jan 2024
Moved: Dyuman Joshi
on 29 Feb 2024
You can turn off the highlights by pressing "Ctrl + Shift + H".
But when you will do so, the message at bottom left will say - "xyz occurences of "variable" found (Ctrl + Shift + H to highlight)". So, just a heads up.
I don't think that the count feature can be turned off. The bar at the bottom does not seem to be customizable.
Matt J
on 25 Jan 2024
Where? In the Editor?
AP
on 25 Jan 2024
Moved: Dyuman Joshi
on 29 Feb 2024
Dyuman Joshi
on 29 Feb 2024
Moved: Dyuman Joshi
on 29 Feb 2024
"I thought turning this highlighting off would prevent matlab from highlighting ..."
Yeah, as I highlighted above, that does not seem to be possible.
"This hang doesnt happen in 2019b"
Does your PC have enough physical resources to run R2023a smoothly?
Answers (1)
John Williams
on 7 Nov 2025
1 vote
This has changed for Matlab 2025b. To turn off syntax highlighting in this version do the following :
1.) Navigate to Settings -> Matlab -> Appearance -> Colors -> Programming Tools
2.) Uncheck "Automatically Highlight" box.
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!