Custom language: Complete statement(Ctrl-Shift-Enter)

Hello,

I was searching info how to implement this feature, and the best I been able to find is com.intellij.codeInsight.editorActions.smartEnter(for example MissingClassBodyFixer) I guess that it contains fixes for lots of cases

How can I implement this for custom language?

Best regards,
Boyan

0
3 comments

You should implement com.intellij.codeInsight.editorActions.smartEnter.SmartEnterProcessor for your language

0
Avatar
Permanently deleted user

Thanks, Dmitry


0
Avatar
Permanently deleted user

In case if someone needs this:

    <lang.smartEnterProcessor language="Haxe" implementationClass="com.intellij.plugins.haxe.editor.smartEnter.HaxeSmartEnterProcessor"/>

0

Please sign in to leave a comment.