The “Find and Replace” feature in the code editor has existed for many years. Developers can easily and efficiently search and replace code, especially when dealing with large codebases. 4D v20 is bringing improvements that are sure to be appreciated by developers who rely on this functionality to streamline their coding workflows:
- knowing the number of occurrences to replace,
- knowing the position of the current occurrence,
- having permanent access to the Next and Previous navigation options,
- display a palette instead of a modal window to limit the number of clicks.
Here is the new editor to search:
And to replace:
If you used the shortcuts, no worries; they haven’t changed. If you have not customized the shortcuts, here is a summary table:
Windows | macOS | |
Find | CTRL + F | CMD + F |
Find Next | CTRL + G | CMD + G |
Find Previous | CTRL + SHIFT + G | CMD + SHIFT + G |
Find Same Next | CTRL + E | CMD + E |
Find Same Previous | CTRL + SHIFT + E | CMD + SHIFT + E |
Replace | CTRL + ALT + F | CMD + ALT + F |
Replace Next | CTRL + ALT + G | CMD + ALT + G |
Need more details? I advise you to read the documentation of the code editor.