zoukankan      html  css  js  c++  java
  • 在Eclipes中查看源代码和大纲快速定位

    1 在Eclipes中查看源代码,快捷键使用clrl+光标,选择你要查看的方法和属性查看源代码。例如你想看StringBuilder这个类源代码

      StringBuilder allow = new StringBuilder();

    快捷键使用clrl+光标,选择你要查看的方法和属性查看源代码
    public final class StringBuilder
        extends AbstractStringBuilder
        implements java.io.Serializable, CharSequence
    {

        /** use serialVersionUID for interoperability */
        static final long serialVersionUID = 4383685877147921099L;

        /**
         * Constructs a string builder with no characters in it and an
         * initial capacity of 16 characters.
         */
        public StringBuilder() {
            super(16);
        }

    2 大纲快速定位,可以在Eclipes最右边找到Outline按钮点击,打开视图找到你想定位的位置。或者鼠标点击右键选择Quick Outline。

  • 相关阅读:
    【VectorDemo】
    【列表迭代器:添加元素】
    【列表迭代器】
    【迭代器】
    【LinkedList】
    【list 集合的使用】
    【CollectionDemo2】
    【CollectionDemo1】
    【集合和数组的区别?】
    【到底使用那种集合?】
  • 原文地址:https://www.cnblogs.com/TangGe520/p/8671318.html
Copyright © 2011-2022 走看看