IntelliJ Sort Imports Alphabetically by group

已回答

I would like to sort my imports alphabetically by group.

 

For example:

import com.hopding.jrpicam.RPiCamera;
import com.hopding.jrpicam.exceptions.FailedToRunRaspistillException;

Has to become:

import com.hopding.jrpicam.exceptions.FailedToRunRaspistillException;
import com.hopding.jrpicam.RPiCamera;

 

Is this possible?

 

 

评论操作 固定链接

Please try Code | Optimize imports and Code | Rearrange Code

1
评论操作 固定链接

That's the default behavior. 'P' is smaller than 'e' in ascii table.

0

请先登录再写评论。