gpt4 book ai didi

macos - TextMate - 查找和替换选定的文本

转载 作者:行者123 更新时间:2023-12-01 10:12:58 25 4
gpt4 key购买 nike

在 TextMate 中,有人知道您如何查找和替换选定的文本吗?

最佳答案

这就是你要找的吗? http://manual.macromates.com/en/working_with_text

4.5.2 Find Clipboard

Two useful key equivalents are ⌘E and ⌘G. The first copies the selection to the shared find clipboard. This works in the majority of applications and allows you to find the next occurrence of that string by then pressing ⌘G.

The find clipboard works across applications so whether in Safari, TextEdit, Mail, TextMate, Terminal, Console, or similar, one can copy the selected text to the find clipboard, switch application and use ⌘G to find that string.

In addition TextMate offers ⇧⌘E to copy the selection to the replace clipboard. This is often useful to save a trip to the find dialog, for example if you want to replace newlines with the pipe character (|) for a list of items, select a newline, press ⌘E to use that as the find string. Now type a |, select it and press ⇧⌘E so that it is copied to the replace clipboard.

The next step is then to either press ⌃⌘F to perform the replacement in the entire document, or select the range in which you want the replacement to occur and use ⌃⇧⌘F instead.

关于macos - TextMate - 查找和替换选定的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3838711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com