Dennis
Dennis

Reputation: 1101

IntelliJ: Custom auto-correct/-complete entries

I have IntelliJ (v2018.3.2 Ultimate Edition) and look for an option to define custom entries which, ideally, replace certain words with another statement, or otherwise let me Ctrl+Space exchange custom words with a statement.

In my specific case, typing @null should be replaced by {@code null}.

Is there such a feature, or what workarounds may be used?

Upvotes: 1

Views: 182

Answers (1)

Kootli
Kootli

Reputation: 564

Please use live template variables: https://www.jetbrains.com/help/idea/template-variables.html .

Upvotes: 1

Related Questions