如何使sublime text 3在搜索一个或多个文件时自动填充"find"填充当前选择

How to make sublime text 3 to automatically fill the "find" filled with current selection when searching in one or multiple files

我在 macOS 中遇到了一个奇怪的行为,当我选择文本并按下 SHIFT-COMMAND-F 时,“查找”字段留空并且没有填充所选文本,每次我都必须手动复制或插入。

在 Windows 中,每当我按下 SHIFT-ALT-F 时,“查找”字段就会填充当前选定的文本,此行为会有所不同。

如何解决这个问题?在首选项中找不到任何选项。

提前致谢

您要开启的设置是:

    // If true, the selected text will be copied into the find panel when it's
    // shown.
    // On Mac, this value is overridden in the platform specific settings.
    "find_selected_text": true,

这是默认首选项的直接副本。如此处所示,它默认在 Linux 和 Windows 上启用,但在 MacOS 上,Sublime 附带的平台特定设置将其关闭,因此 OS您需要将此设置复制到您的用户首选项中才能将其打开。