如何使用Windows搜索在任何文件中搜索文本
如何使⽤Windows搜索在任何⽂件中搜索⽂本
Many of us rely on Windows Search to find files and launch programs, but searching for text within files is limited to specific file types by default. Here’s how you can expand your search to include other text-based files.
我们中的许多⼈都依赖Windows搜索来查⽂件和启动程序,但是默认情况下,在⽂件中搜索⽂本仅限于特定的⽂件类型。 您可以通过以下⽅式扩⼤搜索范围,以包括其他基于⽂本的⽂件。
淹糖蒜
We have shown you some  before and even how to change . But what about searching for text inside of .html, .php, .js, and other text-based web and scripting files? Windows search allows you to include other file extensions in its index with a few simple clicks.全国一卡通
拿国旗当头像犯法吗
我们已经向您展⽰了⼀些,甚⾄还介绍了如何更改。 但是,如何在.html,.php,.js以及其他基于⽂本的Web和脚本⽂件中搜索⽂本呢?Windows搜索使您只需单击⼏下即可在索引中包括其他⽂件扩展名。
This technique works in Windows 10, 8, 7, or even Vista. The screens might look a little different, but it’s the same basic process on all versions.
房屋租赁发票税率
此技术适⽤于Windows 10、8、7甚⾄Vista。 屏幕可能看起来有些不同,但是在所有版本上都是相同的基本过程。
Hit Start, type “index,” and then click the “Indexing Options” result.
单击开始,键⼊“索引”,然后单击“索引选项”结果。
在“索引选项”窗⼝中,单击“⾼级”按钮。彭于晏 蔡依林
In the “Advanced Options” window, switch to the “File Types” tab. Select the extension for the file type you would like to include in content searches, and then select the “Index Properties and File Contents” option under the list. The text in the “Filter Description” column should change to reflect whatever filter is used to open that file type by default. In our
example, we’re selecting the BAT extension, so the filter type changes to “Plain Text Filter.”
在“⾼级选项”窗⼝中,切换到“⽂件类型”选项卡。 选择要包含在内容搜索中的⽂件类型的扩展名,然后在列表下⽅选择“索引属性和⽂件内容”选项。 默认情况下,“过滤器说明”列中的⽂本应更改以反映⽤于打开该⽂件类型的任何过滤器。 在我们的⽰例中,我们选择了BAT扩展名,因此过滤器类型更改为“纯⽂本过滤器”。
If you don’t find file type you’re looking for on the list, it means no app is set as the default handler for that file type. To add the file type, type the extension in the “Add New Extension to List” box and t
hen click the “Add” button. By default, Windows Search will use a plain text filter to search the contents of those types of files, since another app is not associated.
如果在列表中不到要查的⽂件类型,则意味着没有应⽤设置为该⽂件类型的默认处理程序。 要添加⽂件类型,请在“将新扩展名添加到列表”框中键⼊扩展名,然后单击“添加”按钮。 默认情况下,Windows Search将使⽤纯⽂本过滤器来搜索这些类型的⽂件的内容,因为另⼀个应⽤程序未关联。
After the index is rebuilt, searching for text inside one of the new file types should now show results.
重建索引后,在⼀种新⽂件类型中搜索⽂本现在应该显⽰结果。
If you’d like to always search within file contents for a specific folder, navigate to that folder in File Explorer and open the “Folder and Search Options.”
罐头的做法
如果您想始终在⽂件内容中搜索特定⽂件夹,请在⽂件资源管理器中导航⾄该⽂件夹,然后打开“⽂件夹和搜索选项”。
On the “Search” tab, select the “Always search file names and contents” option.
在“搜索”选项卡上,选择“始终搜索⽂件名和内容”选项。
重建索引后,在该⽂件夹中的搜索将⾃动包括⽂件内容。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。