L
L
Larisa2016-11-06 23:23:02
css
Larisa, 2016-11-06 23:23:02

Is it possible in webstorm to find duplicate lines of code?

There is a large css file compiled from LESS.
Got a question.
Is there a functionality in Webstorm that analyzes the file for duplicate code.
For example,

.breadcrumb.path {}
и где-то через 50 строк вдруг может попасться такой же фрагмент
.breadcrumb.path {}

Trite CTRL + F is a search, not an analysis of all lines of code to search for duplicates.
Thank you all in advance)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kitmanov, 2016-11-06
@loratokareva

And actually why? Put some cssnano after LESS, it will glue all the same selectors and remove duplicates.

O
Oleg, 2016-11-06
@ptrvch

If you need to search the entire project, use ctrl+shift+f

S
sergey, 2016-11-06
@zorro76

offhand, you can also use the search Edit - Find - Find in Path (Ctrl + Shift + F) and here we indicate the word, line, part of the code and the search takes place: in the project, in the directory, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question