- Go to the "Home" tab in the MATLAB toolbar.
- Click on "Preferences" to open the Preferences dialog.
- In the Preferences dialog, select "Editor/Debugger" from the left-hand side panel.
- Under the "Editor" section, click on "Scrolling" to expand the options.
- Uncheck the box next to "Scroll Selection" to disable this feature.
- Click "Apply" and then "OK" to save the changes and close the Preferences dialog.
How to keep editor scrollbar from selecting text?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I installed R2023a on a new mac, and now this very annoying new behavior: if I grab the scrollbar to drag up or down the script, it selects all the text between start and end scrolling points. This can't be intended, how to stop it?
0 comentarios
Respuestas (1)
Vishnu
el 12 de Jul. de 2023
You might have enabled "Scroll Selection", to disable it, follow these steps:
5 comentarios
Walter Roberson
el 21 de Ag. de 2025 a las 20:51
Editada: Walter Roberson
el 21 de Ag. de 2025 a las 21:55
This is what the preferences section looks like on MATLAB R2023a for MacOS:

As you can see, the Editor section of Editor/Debugger has no "Scrolling" or "Scroll Selection"
The Windows R2023a preferences are the same, just with slightly different decorations.
I do not recall there ever having been a "Scroll Selection" preference.
I think you used an AI system to answer, without checking the validity of the answer yourself.
Ver también
Categorías
Más información sobre Entering Commands en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!