Add Imports after specific comment

Answered

Hey, so I'm in an ERP Developer Team.
Before we push our projects we need to “generate” them, where the code is analyzed and Imports which are not between two specific comments are deleted.
Is there some setting to put all automatically added imports after that specific comment?

0
1 comment

You can create a custom inspection using Structural Search and Replace which will identify such imports, show warning and offer a quick fix to move imports after a specific comment. AI Assistant should be able to help with creating a template for this.

0

Please sign in to leave a comment.