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

3 comments
Comment actions Permalink

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

0
Comment actions Permalink

Thanks, Dmitry


0
Comment actions Permalink

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.