Get old Find & Replace window back?
조회 수: 17 (최근 30일)
이전 댓글 표시
As of release R2022a, "Find & Replace" has been moved to a small pop-up menubar at the top right corner of the editor. Annoyingly, the 'Replace' part of the manubar is collapsed by default, which means whenever I want to replace some text in my code, I need to click the little arrow to the left of the menubar. In previous releases, when "Find & Replace" opened in a separate window, navigating to the 'replace' text box was possible with two keyboard shortcuts (CMD-F and tab to move to the Replace text field) and did not require using the mouse. This may sound pedantic, but I find this new "feature" rather disruptive to my workflow.
Is there a way to get the old 'Find and Replace' window back or at least have the Replace part of the new menu bar be expanded by default?
Thanks!
댓글 수: 6
Francesca Marini
2023년 4월 24일
As discussed in this MATLAB Answers post, here some more updates related to Find and Replace bar position, history and wrapping respectively.
- From MATLAB R2022b, the find and replace dialog box will no longer obscure the code as when it overlaps the find result, the editor will move downward.
- You can use the down arrow to show a list of previous searches in R2021b. Starting in MATLAB R2023a, there is a visual hint indicating that you can do so:
- Enable and disable wrapping is one of our top priority issues and we are working on a solution. For now, starting in MATLAB R2023a, you can use the "Find in selection" option to perform search and replace in selection instead of the entire script to narrow down the scope of the search. https://www.mathworks.com/help/matlab/matlab_prog/find-and-replace-text-in-files.html
Felipe Jiménez Hernández
2025년 2월 21일
Francesca, yours must be the ugliest work on earth, having to defend an infuriating editor downgrade like this. This editor is obviously much worse than the previous one, in many aspects. Why don't you just let us opt out of it? Get the previous editor? The inability to disable wrapping is so annoying, and such a basic thing, that I don't understand how this sh*tty editor even got to see the light in the first place. It's like you are just wanting to annoy users for no reason (since the old editor is still there). The only reason I can imagine for this is that it is cheaper for you (do you have to pay some other company for the old editor?), but you already charge a lot of money for your software. Don't make the experience so annoying, because even the best can lose their position in the market.
채택된 답변
Steven Lord
2022년 4월 7일
Open the Preferences using the button in the Environment section on the Home tab of the Toolstrip.
Under MATLAB, expand the Keyboard section of the tree and select the item Shortcuts underneath it.
If you search for "Replace" using the search box immediately below the Active Settings dropdown it will tell you the shortcut to open the Replace dialog directly. On my Windows machine it is Ctrl-H so on your Mac I suspect it will be CMD-H but you can check and change it to something else if you so choose.
댓글 수: 16
Michael Miller
2023년 4월 7일
Les Beckham: I have installed 2023a but the behavior is still the same. I don't get the file moved down as you do. The Find or Find/Replace pop up obscures the file being edited. I have looked through all preference settings and find nothing relevant. I am running on Linux. Am I missing something or is this an OS dependent issue?
Thank you!
Michael Miller
2023년 4월 7일
Never mind. I just reread your post to realize that you stated it moves the file only if the searched for string is located underneath the popup. That does work in my Linux version. Thx
추가 답변 (1개)
Sergio Silva
2023년 3월 17일
Another question regarding the "Find & Replace" tool. On R2021a, there were options "match case", "whole word" and "wrap around".
On the new tool (R2022b), I can see "match case", "whole word" and "regular expression", but no "wrap around", which I use frequently on R2021a.
Am I missing something? How can I find/replace only up to the end of file with the new tool?
Thanks!

댓글 수: 2
MathWorks Desktop Team
2024년 8월 26일
Hi Sergio, just FYI, the "wrap around" option was re-added in R2024a as a setting and is available as a UI option in a future release. Take a look at this entry in the release notes for more info. You can also click the "Find in Selection" button to limit search and replace within the selection:

Sergio Silva
2024년 8월 27일
Thanks for your reply. I'll check it out when R2024a is available at my institution. Best, Sergio
참고 항목
카테고리
Help Center 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


