eclipse常用快捷键汇总

eclipse常用快捷键汇总

  1: 自动调整缩进:ctrl + i ,对应的菜单在:右键-》Source-》Correct Indentation;或者按下 CTRL+SHIFT+F,对应的菜单在:右键->source->format。

  如果要增加缩进,则选中代码,按下Tab键;如果要减小缩进,则按下shift + Tab。

  2:输出System.out.println()的快捷方法是:输入syso,然后按下 alt +  /。

  3:添加注释:选中代码,按下 ctrl  + /;取消注释:选中已经被注释掉的代码,也是按下 ctrl + /。

  

原文地址:https://www.cnblogs.com/pricks/p/1452085.html