IntelliJ IDEA. Structural Search and Replace

preview_player
Показать описание
Conventional search methods do not take into account the syntax and semantics of the source code. Even if you use regular expressions, IDEs and editors still treat your code as text.

Structural search and replace (SSR), on the other hand, lets you search for a particular code pattern or grammatical construct in your code while considering your code structure.

This video shows not only how to use Structural Search and Replace and search templates, but also how you can use the templates to create custom inspections.

*Author: Trisha Gee

Join us:

Category: Code Analysis

#getting_to_know_intellij #intelliJIDEA #intelliJ #jetbrains
Рекомендации по теме
Комментарии
Автор

learning this feature well is a high learning curve or just lack of documentatin. I'm doing so much trial and error and unable to get any results. The text constraint on a parameter just doesn't seem to work. Very frustrating

galanoth
Автор

I think this vedio somehow deprecated, Hean could you please re create it for us with the changed ui
for for the type, can I have a fully qualified name for a spacific class?

basheeral-momani
Автор

Wow! I've been using IntelliJ for years. How do I only find out about this feature now??

florianwicher
Автор

made my life much easier instead of using grep and regex with beautiful and more productive UI

manizaeim
Автор

This is really good but I think we need a more in depth version. For example, I want to find methods annotated with @GET and @Consumes and replace the @Consumes but not affect any other annotations. I couldn't find how to do that - the other annotation are removed when I use replace.

M_Jaggard
Автор

Not clear at all….!! Why not to use an example ?...

Zurenio
Автор

If a class structure is displayed as it is in the java code, half the problem will be solved right there.

petsrbest
Автор

And yet search in current file is no better than notepad.

TheBest-sdqf