How to enable viewing workspace variables when hovering
Afficher commentaires plus anciens
This used to be a feature, but now I'm not seeing it in 2025b. When I am stopped and debugging code, I can hover my cursor over a variable and it will display a pop-up with the value of the variable. It also used to do this when not in debug mode if the variable name matched one in the current workspace, but it does not do this anymore. I found this useful when working on a script that operates in the base workspace. Is there a way to re-enable this functionality?
2 commentaires
Mathieu NOE
le 19 Juin 2026 à 6:36
helllo
hopefully this is still valid for 2025b :
You'll find the option in your preferences, Editor/Debugger subgroup, then Display.
The option is called "Enable datatips in edit mode"

Matt J
le 21 Juin 2026 à 7:48
That's great. I never knew about this preference setting.
Réponse acceptée
Plus de réponses (1)
Deepak
le 23 Juin 2026 à 9:48
0 votes
Hi David,
I understand that you are trying to view variable values by hovering over them in the editor (even outside debug mode), which used to work earlier but is not visible in MATLAB R2025b.
To answer your question, in MATLAB R2025a/b the hover display of variable values outside debug mode (for example, from the base workspace) is not supported in the new desktop. Hover-based value inspection is now limited to debugging contexts, and there is no setting to restore the earlier behavior.
You can enable editor datatips using: Go to Preferences → MATLAB → Editor/Debugger → Display
Enable “Enable datatips in edit mode”
This enables hover tooltips where supported (primarily during debugging).
Hope this helps.
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!