Double clicking code sometimes select the whole line (2021b?)
8 次查看(过去 30 天)
显示 更早的评论
Hi, I've recently upated to Matlab 2021b and this has been bothering me for a while. Typically in text editors, double-clicking some word will select the whole word, and that is also true of Matlab. However, it appears that the recent Matlab update implemented some sort of full-line selection with conditions that are rather obscure and it feels to me like bad UX.
Not gonna lie, this is rather annoying and it makes me want to roll back the update as it does disrupt my train of thoughts as I code. From what I observed, if you have already selected a whole word with a double-click, and then you double-click another different word, then the next word you double-click will select the full line instead of only the word that was clicked.
A use case that annoys me a lot is when I'm copying a piece of code and replacing a variable with a different variable name in multiple locations by Ctrl-V'ing the variable name to the new locations. Then it'll select the whole line and I'll erase the entire line of code as I press Ctrl-V, ending up frustrated.
Is there a fix for this? Maybe a setting I can deactivate? And no, I don't want automatic replacing of variable names in my codes; thanks.
1 个评论
Benjamin Tessler
2023-7-25
编辑:Benjamin Tessler
2023-7-25
Has there been any updates on this bug? It's been hurting my productivity. (I'm using 2023a and it's happening to me)
回答(3 个)
Pranjal Kaura
2021-12-29
Hey Fernando,
Thank you for bringing this up. I have heard that this issue is known and the corresponding parties are investigating it further and will try to fix it in future releases.
0 个评论
david machacek
2023-8-23
I have the same issue and it makes my innermost melt with frustration!!!
0 个评论
Akash Singh
2021-12-8
Double click selects the word.
Triple click selects the line, this change has been implemented in MATLAB 7.9 (R2009b) in order to allow a line of code to be selected, dragged, and inserted in a new position in a MATLAB file.
2 个评论
Alex Chang
2022-6-3
Still appears to occur in Matlab 2022a - is a very agitating (I presume) bug.
Running on Ubuntu 16.04 LTS. Can confirm this behavior does not occur in other text editors, only the Matlab GUI.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!