Add Imports after specific comment

已回答

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

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

请先登录再写评论。