MATLAB: How to use word selection in the MATLAB Editor/Debugger without double-clicking a word

MATLAB

I want the MATLAB Editor/Debugger to use word selection rather than character selection when I select words by holding down the left mouse button and scrolling across a line from left to right. In other words, if I click at the start of a line, hold down the left mouse button, and start scrolling to the right, the first word will be selected one character at a time, but the second word and onward should be added to my selection one word at a time.

Best Answer

The ability to use word selection by holding down the left mouse button and scrolling the mouse is not available in the MATLAB Editor/Debugger.
To work around this issue, you can double click the first word you want to select, hold down the left mouse button after the second click, and scroll the mouse cursor to the right. Words will be added to your selection as whole words rather than being added one character at a time.
Another workaround is to use keyboard equivalents, such as Ctrl+right arrow key to select the next word.