技巧 | 方法 |
---|---|
快速输入主方法 | 1.敲入main 2.alt+/ |
快速输入System.out.println | 1.敲入main 2.alt+/ |
快速输入System.out.println | syso alt+/ |
快速输入for循环 | for alt+/ |
查看java源代码 | JDK里提供的类,比如String,Intger,System都是开源的,免费提供其源代码,可以很简便的通过eclipse就查看源码。1.先选中想要查看的方法,比如System.out.println()的 println 2.敲键F3 |
代码格式化 | ctrl+shift+f |
快速注释 | ctrl+shift+c |
大小写转换 | ctrl+shift+x 选中的转换为大写,ctrl+shift+y 选中的转换为小写 |
快速解决办法提示 | 在出错误的行,使用ctrl+1。 比如忘记导入类了,就可以用这个解决 |
(整理自how2j.cn)