idea快捷键总结
1、实现接口到派生方法:ctrl+alt+B
2、查看派生方法父接口:ctrl+u
3、全屏:ctrl+shift+F12
4、去除区分大小写 editor->code completion
去掉Match case
前面的复选框
5、启动调试 Remote指定调试端口:9527
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9527
java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9527 xxx-1.0-SNAPSHOT-war-exec.jar
-----------Listening for transport dt_socket at address: 9527
此时9527作为调试监听端口
6、maven打包后出现中文乱码问题
解决方法:
在eclipse中已经设置了utf-8的编码格式,但依然出现这个警告,后来查阅资料,在pom.xml文件中添加上述语句,问题解决:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
7、选择语句块添加包裹条件(if, try/catch/finally):Ctrl+Alt+T
8、格式化:ctrl + alt + L