How to create live template like `condition.if` that natively supported by JetBrains IDE?

495 views Asked by At

In JetBrains IDE including PHPStorm, PyCharm, IntelliJ Idea, I can type this

age > 0.if

Then press tab and I will get

if (age > 0) {
}

In my application I need to type a lot of these:

    const resPartnerFactory = new BaseModelFactory(ResPartner);
    const accountChartTemplateFactory = new BaseModelFactory(AccountChartTemplate);
    const resCompanyFactory = new BaseModelFactory(ResCompany);

And want to create a live template like

    ResPartner.bmf

I have created these

enter image description here

How to finishe the .bmf part?

0

There are 0 answers