idea常用快捷键

1.mian方法 : psvm 

2.输出语句 : sout

3.复制行 :ctrl + d

4.删除行 :ctrl + y

5.ctrl + z (ctrl + z)--redo : ctrl + shift + z  

6.代码上下移动 :ctrl + shift + ↑/↓

7.搜索类:ctrl + n

格式化代码:ctrl + alt + L;

8.生成代码(如构造方法,set,get方法等):alt + insert

  补全代码 (快速添加方法返回值):alt + enter

9.注释代码:ctrl + / ---单行注释

      ctrl + shift + / ----多行注释

10.普通for循环 :for + i

11.代码块包围 :ctrl + alt + t

12.缩进:tab 

  取消缩进 :shift + tab

13.代码一层一层调用的快捷键

ctrl + alt + 向左/向右箭头 

14.代码模板

 

 

 

 

posted @ 2021-03-09 19:25  冷森、  阅读(249)  评论(0)    收藏  举报