⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 renamesymbol.java

📁 emacs的一个非常有用的插件,叫xrefactory,可以实现source insight里的那种函数跳转.和cscope(跳回来不方便)配合使用,非常的不错.
💻 JAVA
字号:
package com.xrefactory.refactorings;/*  Put cursor on the symbol to  rename and press F11 or invoke 'Xref ->  Refactor'.  Then move to the appropriate refactoring in the proposed  menu and press <return>.  When asked enter new name for the symbol.*/class RenameSymbol {    int j = 0;    // rename the variable i    void method() {        for(int i=0; i<10; i++) System.out.print(" " + j + " " + i);    }    // you can rename virtual methods as well, in preference the whole hierarchy.    // In proposed resolution screen press <return> to continue    class Super {        void vmethod() {}    }    class Infer extends Super {        void vmethod() {}    }    // if you rename x to j a name collision will be reported    void method() {        for(int x=0; x<10; x++) System.out.print(" " + j + " " + x);    }}/*  F5 will bring you back to Index*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -