编辑多行:
alt + shift + 鼠标左键 (可将光标停留在多处,并可同时编辑)alt + 鼠标左键 (可上下直接拖动鼠标,同时编辑)一下是每次打开idea给的suggestion
You can easily rename your classes, methods and variables with automatic correction of all places where they are used. To try it, place the caret at the symbol you want to rename, and press Shift+F6 (Refactor | Rename). Type the new name in the popup window that appears, or select one of the suggested names, and press Enter.您可以很容易地重命名您的类、方法和变量,并自动更正使用它们的所有位置。 要尝试它,将插入符号放在要重命名的符号处,然后按Shift+F6(重构| rename)。在弹出的窗口中键入新名称,或者选择建议的名称之一,然后按Enter键。
You may easily override methods of the base class by pressing Ctrl+O (Code | Override Methods). To implement methods of the interfaces that the current class implements (or of the abstract base class), use Ctrl+I (Code | Implement methods).
您可以通过按Ctrl+O轻松覆盖基类的方法(代码为|覆盖方法)。 要实现当前类实现的接口(或抽象基类)的方法,请使用Ctrl+I(代码为|实现方法)。
选中要展开的目录,按下键盘的向右箭头,这时候会展开一层当前目录。如果要展开所有,一直按住向右箭头不放即可。
如果光标位于方法调用的圆括号之间,按Ctrl+P会弹出一个有效参数列表
进入接口或者接口方法的实现 在eclipse中直接 ctrl+ 鼠标左键 在idea中: 第一中方式:选择接口类,按Ctrl+Alt+B第二种方式:Ctrl+Alt+鼠标左键