Misc: Format generated members under write action
EA-87901 Fixed
This commit is contained in:
@@ -204,10 +204,10 @@ fun <T : KtDeclaration> insertMembersAfter(
|
||||
moveCaretIntoGeneratedElement(editor, insertedMembers.first())
|
||||
}
|
||||
|
||||
insertedMembers
|
||||
}.apply {
|
||||
val codeStyleManager = CodeStyleManager.getInstance(classOrObject.project)
|
||||
forEach { codeStyleManager.reformat(it) }
|
||||
insertedMembers.forEach { codeStyleManager.reformat(it) }
|
||||
|
||||
insertedMembers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user