eclipse快捷键
package com.atguigu.java;
import java.sql.Date;
import java.util.ArrayList;
import java.util.HashMap;
/*
* Eclipse中的快捷键
* 1.补全代码的声明 alt + /
* 2.快速修复 ctrl + 1
* 3.批量导包 ctrl + shift + o
* 4.使用单行注释 ctrl + /
* 5.使用多行注释 ctrl + shift + /
* 6.取消多行注释 ctrl + shift + \
* 7.复制指定行的代码 ctrl + alt + down/up
* 8.删除指定行的代码 ctrl + d
* 9.上下移动代码 alt + up/down
* 10.切换到下一行的代码空位 shift + enter
* 11.切换到上一行的代码空位 shift + shift + enter
* 12.如何查看源码 strl + 选中指定的结构 或者 ctrl + shift + t
* 13.退回到前一个编辑的页面 alt + left
* 14.退回到下一个编辑的页面 alt + right
* 15.光标选中指定的类,查看继承性树结构 ctrl + t
* 16.复制代码 ctrl + c
* 17.撤销代码 ctrl + z
* 18.反撤销 ctrl + y
* 19.剪切 ctrl + x
* 20.粘贴 ctrl + v
* 21.保存 ctrl + s
* 22.全选 ctrl + a
* 23.格式化代码 ctrl + shift + f
* 24.选中数行,整体向后移动 tab
* 25.选中数行,整体向前移动 shift + tab
* 26.在当前类中,显示类结构,并支持搜索指定的方法,属性等 ctrl + o
* 27.批量修改指定的变量名,方法名,类名等 alt + shift + r
* 28.选中的结构的大小写切换:变成小写 ctrl + shift + x
* 29.选中的结构的大小写切换:变成大写 ctrl + shift + y
* 30.调出生成 getter setter 构造器等结构 alt + shift + s
* 31.显示当前选择资源(工程 或 文件)的属性 alt + enter
* 32.快速查找:参照选中的word快速定位到下一个 ctrl + k
*
* 33.关闭当前窗口 ctrl + w
* 34.关闭所有窗口 ctrl + shift + w
* 35.查看指定的结构使用过的地方 ctrl + alt + g
* 36.查找与替换 ctrl + f
* 37.最大化当前的 View ctrl + m
* 38.直接定位到当前的首位 home
* 39.直接定位到当前的末位 end
*/
public class EclipseKeys
{
final double PROJECT_ACCOUNT_ID = 3.14;
public static void main(String[] args)
{
String s = new String();
java.lang.String str = new String();
char c = str.charAt(0);
int num = 1;
ArrayList list123 = new ArrayList();
list123.add(123);
list123.add(123);
Date date = new Date(2313213);
HashMap map = null;
map = new HashMap();
}
}
class User{
private int id;
private String name;
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public User(int id, String name)
{
super();
this.id = id;
this.name = name;
}
}