Enable 'Settings | Editor | General | Auto Import | Optimize imports on the fly'
时间: 2023-12-07 20:02:36 浏览: 107
Python库 | titus_optimize-0.1.5.tar.gz
As an AI language model, I cannot perform actions on your local IDE. However, I can provide you with instructions on how to enable 'Optimize imports on the fly' in IntelliJ IDEA, which is one of the most popular IDEs.
To enable this feature, you should:
1. Open IntelliJ IDEA and go to 'Settings' by clicking on 'File' > 'Settings' (or by using the keyboard shortcut 'Ctrl + Alt + S' on Windows/Linux or 'Cmd + , ' on Mac).
2. In the 'Settings' window, go to 'Editor' > 'General' > 'Auto Import'.
3. Check the box next to 'Optimize imports on the fly'.
4. Click 'Apply' and then 'OK' to save the changes.
After enabling this setting, IntelliJ IDEA will automatically optimize imports while you are coding, preventing unused imports from cluttering your code and improving performance.
阅读全文