I had to get obsessed with keyboard shortcuts when using IDEA.
          Apparently some of that must have rubbed off, because
          lately I've been looking for shortcuts to methods and classes in Eclipse 3.0.

          There are two traversal shortcuts I use all the time: Ctrl-O and Ctrl-T.

          Ctrl-O shows the methods of the class in the current editor in a popup.
          Hit Ctrl-O when the popup is up, and you'll see all the inherited
          methods as well. This is incredibly useful, as it allows me to bounce
          between methods even when I'm not sure which class is implementing
          which method.

          Ctrl-T shows the type hierarchy of a selected type in a popup. This is the
          complement to Ctrl-O. When I'm sure of what
          interface I'm looking at, but I really want to pick a particular implementation
          and want to go trawling through that
          implementation for a bit, Ctrl-T will show me all the subclasses or
          implementors for that type.

          There is a third option which I haven't used much. Ctrl-F3 shows the
          methods of a selected type in a popup. I can see how this can be useful,
          but in practice I have a pretty good idea of which methods are attached
           to which classes and Ctrl-Space fills most of my needs there.

          However, I have been missing a couple of things. These are the shortcuts
          I just found recently, and are very good for hitting up random files:

          Ctrl-E shows a popup list of all the open files.
          Ctrl-Shift-T creates a dialog box that you can use to navigate to any class.
          Ctrl-Shift-R creates a dialog box that shows any resource in the project
          (basically any file.)
          Alternately, there's an Eclipse plugin called GotoFile which seems to behave
          a little more "IDEAish".

          Finally, I found a plugin which actually integrates Eclipse with Windows!
          Eclipse Platform Extensions is actually functional and useful, although
          you wouldn't guess it by looking at the website. Although it says that
          it provides a "System GC" functionality, it actually does far more,
          like provide a "Open in Windows Explorer" and
          "Open Command Window here" dialog to the Package Explorer.



          版權所有 羅明
          posted on 2006-02-16 14:09 羅明 閱讀(386) 評論(0)  編輯  收藏 所屬分類: Eclipse
           
          主站蜘蛛池模板: 彰化市| 余庆县| 长阳| 前郭尔| 辽阳县| 宽城| 兴化市| 四子王旗| 涟源市| 乐东| 梅河口市| 岑巩县| 澄迈县| 江华| 德惠市| 交口县| 扎赉特旗| 屯昌县| 腾冲县| 壤塘县| 汝城县| 景德镇市| 虞城县| 沅江市| 永嘉县| 尼勒克县| 喀什市| 宜城市| 乌苏市| 望城县| 巴彦县| 梧州市| 原平市| 娄底市| 平利县| 东台市| 政和县| 卢龙县| 辽宁省| 马鞍山市| 乳山市|