Intellij Idea shortcuts


1. Tab 

In a method and press the Tab key to see what happens.


2. Ctr+D

in editor duplicates the selected block or the current line when no block is selected.


3.  Ctrl + shift  + Space 

String s = (<caret is here >

press it to see what happens.


4. Shift + F1

 to open your brower with documentation for the element at the editor's caret. (Must have set)


5. Ctrl + slash ---> comment or uncomment line with //

   Ctrl + shift + slash ---> encloses the selected block in a block comment (/* ...*/)


6. ctrl +alt +v : refactor and extract variable.

7. ctrl + alt + T: code or surround with.(try-catch, if-else)

8. ctrl + w: select word

9. shift + F6: refactor, rename

10. ctrl +b, equals to ctrl+ mouse click left. to see the declaration of a class.


11. ctrl + Q, quite usefull for see a class or methods' document, (source code has been attached)


+++ maven-surefile-plugin



Then "maven package" its command as below

/usergrid/jdk1.7.0_45/bin/java -Dmaven.home=/usergrid/apache-maven-3.1.1 -Dclassworlds.conf=/usergrid/apache-maven-3.1.1/bin/m2.conf -Didea.launcher.port=7538 -Didea.launcher.bin.path=/usergrid/idea-IC-129.1359/bin -Dfile.encoding=UTF-8 -classpath /usergrid/apache-maven-3.1.1/boot/plexus-classworlds-2.5.1.jar:/usergrid/idea-IC-129.1359/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --fail-fast --strict-checksums -DskipTests=false -Dsurefire.useFile=false package



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值