idea how to automatically remove unused references to Xiaobai’s practical records

Sometimes when we write code, we often need to introduce some jar packages. After the introduction, if we delete the code, the imported package does not need to be used, but it is still in the code, so how to remove unused references?

The operation is as follows:

1 Open the setting options

2 Find the option as shown in the figure, select it, and click Apply; all unused import statements will be eliminated.

Guess you like

Origin blog.csdn.net/h4241778/article/details/108491520