Intellij IDEA:按实际顺序查看类方法 [英] Intellij IDEA: view class methods in their real order
问题描述
我从Eclipse切换到IntelliJ IDEA。目前我正在使用IDEA v 12.0.4。
I am switching to IntelliJ IDEA from Eclipse. Currently I am using IDEA v 12.0.4.
在Eclipse中调用类大纲视图时( Ctrl + O )你按照它们在类中声明的顺序看到了方法。虽然IDEA中的类似文件结构视图( Ctrl + F12 )按字母顺序列出了方法,但在某些情况下我发现自己不方便。
In Eclipse when you called Class Outline view (Ctrl + O) you saw methods in the order they are declared in the class. While the similar File Structure view in IDEA (Ctrl + F12) lists methods in the alphabetical order which I find less convenient for myself in some cases.
在IDEA的文件结构弹出窗口中是否有一种方法可以看到按照它们在类中出现的顺序列出的类方法?理想情况下,我希望有可能从字母顺序切换到自然顺序。
Is there a way in IDEA's File Structure popup to see class methods listed in the order they appear in the class? Ideally I would like to have a possibility to switch from alphabetical to natural ordering.
推荐答案
使用结构工具窗口(在Windows上 Alt + 7 ,在OS X上⌘ + 7 )而不是文件结构弹出窗口。
Use the "Structure" tool window ( Alt+7 on Windows, ⌘+7 on OS X) instead of the "File structure" popup.
这篇关于Intellij IDEA:按实际顺序查看类方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!