Sublime Text - 在项目范围内查找 html 类名的所有实例 [英] Sublime Text - find all instances of an html class name project-wide

查看:62
本文介绍了Sublime Text - 在项目范围内查找 html 类名的所有实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在项目范围内的所有 html 文件中找到名为validation"的类的所有实例.这是一个非常大的项目,搜索验证"一词会给我数百个不相关的结果(js 函数、css、js/css 缩小、其他类、函数和包含验证一词的 html 页面内容等).它有时可能是声明的第二个、第三个或第四个类,因此搜索class='validation"不起作用.

I want to find all instances of a class named "validation" in all of my html files project wide. It's a very large project and a search for the word "validation" gives me hundreds of irrelevant results (js functions, css, js/css minified, other classes, functions and html page content containing the word validation, etc). It can sometimes be the second, third, or fourth class declared so searching for "class='validation" doesn't work.

有没有办法指定我只想要验证是在 html 块上声明的类的结果?

Is there a way to specify that I only want results where validation is a class declared on an html block?

推荐答案

是的.在 sublime 菜单中转到 Find --> Find in Files...

Yes. In the sublime menu go to Find --> Find in Files...

然后匹配下图中的内容.

Then match what is in the following image.

这篇关于Sublime Text - 在项目范围内查找 html 类名的所有实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆