Automatic indentation in new blocks
I have a custom language plugin with a grammar kinda looking like
block ::= 'do' compound 'end'
compound ::= (instruction)*
When I type do<ENTER> PsiViewer shows that elements get a correct representation in the psi tree, and if I try to format an already properly typed file, indents are inserted fine, but I want indentation to be inserted the time I press <ENTER> after do keyword. I have found a solution using TypedAction, but it seems unclean, and I'm sure it can be solved the other way
Please sign in to leave a comment.