Inject language or reference is not remembered/saved after restart

已回答

Hello,

The Inject language or reference, is working fine,  but after I restart Intellij Ultimate or my pc it is not "saved" so to speak. I have to Inject language or reference again for every string. Can I make Intellij Ultimate remember it somehow?

0

It is expected result. By default, the IDE injects a language temporarily. It means that if you delete the embedded element or restart the IDE, the injection will be lost as well.

Please see https://www.jetbrains.com/help/idea/using-language-injections.html#language_annotation on how to make it permanent.

0

Thank you for the response, but I need to remember the injection inside of a cucumber .feature file. Example:

And pass headers to request
"""
{
"Accept": "application/json",
"Content-type": "application/json"
}
"""

Is this possible?

0

You can try using it in the following way:

"""json
{
"Accept": "application/json",
"Content-type": "application/json"
}
"""
0

请先登录再写评论。