IntelliJ Idea 12:如何自动导入名称空间? [英] IntelliJ Idea 12: How do I auto import namespaces?

查看:1244
本文介绍了IntelliJ Idea 12:如何自动导入名称空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,我可以点击 Ctrl + Shift + O 自动导入名称空间的快捷方式。如何在IntelliJ IDEA社区版中执行此操作?

In Eclipse, I can hit the Ctrl+Shift+O shortcut to auto import namespaces. How do I do it in IntelliJ IDEA Community Edition?

推荐答案

代码>优化进口将为您提供您所追求的行为。如果您想通过设置>调整设置。编辑>自动导入

Code > Optimize Imports will provide you the behavior you are after. If you want to adjust the settings you can so via Settings > Editor > Auto Import.

这篇关于IntelliJ Idea 12:如何自动导入名称空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆