Editing
Ctrl + Space 替换为:Ctrl + ;
o Basic code completion (the name of any class, method or variable)
o 自动补全代码,可用于类、方法、变量
Ctrl + Shift + Space 替换为:Ctrl + Shift + ;
o Smart code completion (filters the list of methods and variables by expected type)
o 自动补全代码,或者列举出相应方法和变量集合
Ctrl + Shift + Enter
o Complete statement
o 补全当前行,如:在行末尾加;完成代码;if/else 代码中加上{}完成代码块
Ctrl + P
o Parameter info (within method call arguments)
o 显示方法的参数
Ctrl + Q 替换为:Alt + Q
o Quick documentation lookup
o 显示注释文档
Shift + F1
o External Doc
o 在浏览器中打开光标所在的类或者方法文档
Ctrl + mouse over code
o Brief Info
o 显示类、方法、变量概要信息
Ctrl + F1
o Show descriptions of error or warning at caret
o 显示错误或者警告信息
Alt + Insert
o Generate code… (Getters, Setters, Constructors, hashCode/equals, toString)
o 生成代码,如:getter/setter/构造方法/…
Ctrl + O
o Override methods
o 弹出窗口选择要 Override/Implement 的方法
Ctrl + I
o Implement methods
o 弹出窗口选择要 Implement 的方法
Ctrl + Alt + T
o Surround with… (if..else, try..catch, for, synchronized, etc.)
o 选择代码块,添加到 if/try/for/…代码块中去
Ctrl + /
o Comment/uncomment with line comment
o 注释/取消注释代码行://…
Ctrl + Shift + /
o Comment/uncomment with block comment
o 注释/取消注释代码块:/…/
评论0
最新资源