How to turn off text highlighting/ variable usage counting in 2023a

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

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.
Thank you. I am having an issue when I highlight the index of a variable, Matlab hangs for 16 seconds. I thought turning this highlighting off would prevent matlab from highlighting and counting the variable index in 54,000 places thus prevent the hang but it did not work.
When i say index, I mean the "(Ti, Hi)" portion in somevariable(Ti, Hi).
This hang doesnt happen in 2019b
"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?

Sign in to comment.

Answers (1)

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

Products

Release

R2023a

Asked:

AP
on 25 Jan 2024

Answered:

on 7 Nov 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!