{"id":2932,"date":"2018-07-29T19:25:47","date_gmt":"2018-07-29T11:25:47","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2932"},"modified":"2018-07-29T19:25:47","modified_gmt":"2018-07-29T11:25:47","slug":"intellij-idea-%e5%b8%b8%e7%94%a8%e5%bf%ab%e6%8d%b7%e9%94%ae%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2932","title":{"rendered":"Intellij idea \u5e38\u7528\u5feb\u6377\u952e\u5927\u5168"},"content":{"rendered":"<p>\n\tidea \u5f00\u53d1\u5de5\u5177\u88ab\u8d8a\u6765\u8d8a\u591a\u7684\u516c\u53f8\u91c7\u7528\uff0c\u5305\u62ec\u4e00\u4e9b\u56fd\u5185\u7684\u5927\u516c\u53f8\u3002\u5982\uff1a\u963f\u91cc\uff0c\u767e\u5ea6\u5185\u90e8\u7684\u670b\u53cb\u900f\u9732\uff0c\u6709\u4e0d\u5c11\u670b\u53cb\u90fd\u5728\u4f7f\u7528\u3002\u4e00\u4e9b\u521d\u521b\u516c\u53f8\uff0c\u548c\u4e00\u4e9b\u5c0f\u4f01\u4e1a\u90fd\u5728\u5927\u91cf\u7684\u91c7\u7528 idea \u4f5c\u4e3a\u5f00\u53d1\u5de5\u5177\u3002\u56e0\u6b64\u6211\u4eec\u9700\u8981\u8feb\u5207\u7684\u5bf9 idea \u8fdb\u884c\u4e00\u4e0b\u7cfb\u7edf\u7684\u5b66\u4e60\u3002\u672c\u6587\u5c06\u7ed9\u5927\u5bb6\u5206\u4eab\u4e00\u4e9b idea \u5e38\u7528\u7684\u5feb\u6377\u952e\u7528\u6cd5\u3002\n<\/p>\n<p>\n\t\u6267\u884c(<i>run<\/i>)<i> alt+r<\/i>\n<\/p>\n<p>\n\t\u63d0\u793a\u8865\u5168<i> <\/i>(<i>Class Name Completion<\/i>)<i> alt+\/<\/i>\n<\/p>\n<p>\n\t\u5355\u884c\u6ce8\u91ca<i> ctrl + \/<\/i>\n<\/p>\n<p>\n\t\u591a\u884c\u6ce8\u91ca<i> ctrl + shift + \/<\/i>\n<\/p>\n<p>\n\t\u5411\u4e0b\u590d\u5236\u4e00\u884c<i> <\/i>(<i>Duplicate Lines<\/i>)<i> ctrl+alt+down<\/i>\n<\/p>\n<p>\n\t\u5220\u9664\u4e00\u884c\u6216\u9009\u4e2d\u884c<i> <\/i>(<i>delete line<\/i>)<i> ctrl+d<\/i>\n<\/p>\n<p>\n\t\u5411\u4e0b\u79fb\u52a8\u884c(<i>move statement down<\/i>)<i> alt+down<\/i>\n<\/p>\n<p>\n\t\u5411\u4e0a\u79fb\u52a8\u884c(<i>move statement up<\/i>)<i> alt+up<\/i>\n<\/p>\n<p>\n\t\u5411\u4e0b\u5f00\u59cb\u65b0\u7684\u4e00\u884c(<i>start new line<\/i>)<i> shift+enter<\/i>\n<\/p>\n<p>\n\t\u5411\u4e0a\u5f00\u59cb\u65b0\u7684\u4e00\u884c<i> <\/i>(<i>Start New Line before current<\/i>)<i> &nbsp; &nbsp; ctrl+shift+enter<\/i>\n<\/p>\n<p>\n\t\u5982\u4f55\u67e5\u770b\u6e90\u7801<i> <\/i>(<i>class<\/i>)<i> ctrl + <\/i>\u9009\u4e2d\u6307\u5b9a\u7684\u7ed3\u6784<i> <\/i>\u6216<i> ctrl + shift + t<\/i>\n<\/p>\n<p>\n\t\u4e07\u80fd\u89e3\u9519<i>\/<\/i>\u751f\u6210\u8fd4\u56de\u503c\u53d8\u91cf<i> alt + enter<\/i>\n<\/p>\n<p>\n\t\u9000\u56de\u5230\u524d\u4e00\u4e2a\u7f16\u8f91\u7684\u9875\u9762<i> <\/i>(<i>back<\/i>)<i> alt + left<\/i>\n<\/p>\n<p>\n\t\u8fdb\u5165\u5230\u4e0b\u4e00\u4e2a\u7f16\u8f91\u7684\u9875\u9762(\u9488\u5bf9\u4e8e\u4e0a\u6761)<i> <\/i>(<i>forward<\/i>)<i> &nbsp; alt + right<\/i>\n<\/p>\n<p>\n\t\u67e5\u770b\u7ee7\u627f\u5173\u7cfb(<i>type hierarchy<\/i>)<i> F4<\/i>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u683c\u5f0f\u5316\u4ee3\u7801(<i>reformat code<\/i>)<i> ctrl+shift+F<\/i>\n<\/p>\n<p>\n\t\u63d0\u793a\u65b9\u6cd5\u53c2\u6570\u7c7b\u578b(<i>Parameter Info<\/i>)<i> ctrl+alt+\/<\/i>\n<\/p>\n<p>\n\t\u590d\u5236\u4ee3\u7801<i> ctrl + c<\/i>\n<\/p>\n<p>\n\t\u64a4\u9500<i> ctrl + z<\/i>\n<\/p>\n<p>\n\t\u53cd\u64a4\u9500<i> ctrl + y<\/i>\n<\/p>\n<p>\n\t\u526a\u5207<i> ctrl + x<\/i>\n<\/p>\n<p>\n\t\u7c98\u8d34<i> ctrl + v<\/i>\n<\/p>\n<p>\n\t\u4fdd\u5b58<i> ctrl + s<\/i>\n<\/p>\n<p>\n\t\u5168\u9009<i> ctrl + a<\/i>\n<\/p>\n<p>\n\t\u9009\u4e2d\u6570\u884c\uff0c\u6574\u4f53\u5f80\u540e\u79fb\u52a8<i> tab<\/i>\n<\/p>\n<p>\n\t\u9009\u4e2d\u6570\u884c\uff0c\u6574\u4f53\u5f80\u524d\u79fb\u52a8<i> shift + tab<\/i>\n<\/p>\n<p>\n\t\u67e5\u770b\u7c7b\u7684\u7ed3\u6784\uff1a\u7c7b\u4f3c\u4e8e<i>eclipse<\/i>\u7684<i>outline ctrl+o<\/i>\n<\/p>\n<p>\n\t\u91cd\u6784\uff1a\u4fee\u6539\u53d8\u91cf\u540d\u4e0e\u65b9\u6cd5\u540d(<i>rename<\/i>)<i> alt+shift+r<\/i>\n<\/p>\n<p>\n\t\u5927\u5199\u8f6c\u5c0f\u5199<i>\/<\/i>\u5c0f\u5199\u8f6c\u5927\u5199(<i>toggle case<\/i>)<i> ctrl+shift+y<\/i>\n<\/p>\n<p>\n\t\u751f\u6210\u6784\u9020\u5668<i>\/get\/set\/toString alt +shift + s<\/i>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u67e5\u770b\u6587\u6863\u8bf4\u660e(<i>quick documentation<\/i>)<i> F2<\/i>\n<\/p>\n<p>\n\t\u6536\u8d77\u6240\u6709\u7684\u65b9\u6cd5(<i>collapse all<\/i>)<i> alt + shift + c<\/i>\n<\/p>\n<p>\n\t\u6253\u5f00\u6240\u6709\u65b9\u6cd5(<i>expand all<\/i>)<i> alt+shift+x<\/i>\n<\/p>\n<p>\n\t\u6253\u5f00\u4ee3\u7801\u6240\u5728\u786c\u76d8\u6587\u4ef6\u5939(<i>show in explorer<\/i>)<i> ctrl+shift+x<\/i>\n<\/p>\n<p>\n\t\u751f\u6210<i>try-catch<\/i>\u7b49(<i>surround with<\/i>)<i> alt+shift+z<\/i>\n<\/p>\n<p>\n\t\u5c40\u90e8\u53d8\u91cf\u62bd\u53d6\u4e3a\u6210\u5458\u53d8\u91cf(<i>introduce field<\/i>)<i> alt+shift+f<\/i>\n<\/p>\n<p>\n\t\u67e5\u627e<i>\/<\/i>\u66ff\u6362(\u5f53\u524d)<i> ctrl+f<\/i>\n<\/p>\n<p>\n\t\u67e5\u627e(\u5168\u5c40)<i> ctrl+h<\/i>\n<\/p>\n<p>\n\t\u67e5\u627e\u6587\u4ef6<i> double Shift<\/i>\n<\/p>\n<p>\n\t\u67e5\u770b\u7c7b\u7684\u7ee7\u627f\u7ed3\u6784\u56fe(<i>Show UML Diagram<\/i>)<i>&nbsp; &nbsp; ctrl + shift + u<\/i>\n<\/p>\n<p>\n\t\u67e5\u770b\u65b9\u6cd5\u7684\u591a\u5c42\u91cd\u5199\u7ed3\u6784(<i>method hierarchy<\/i>)<i> ctrl+alt+h<\/i>\n<\/p>\n<p>\n\t\u6dfb\u52a0\u5230\u6536\u85cf(<i>add to favorites<\/i>)<i> ctrl+alt+f<\/i>\n<\/p>\n<p>\n\t\u62bd\u53d6\u65b9\u6cd5(<i>Extract Method<\/i>)<i> alt+shift+m<\/i>\n<\/p>\n<p>\n\t\u6253\u5f00\u6700\u8fd1\u4fee\u6539\u7684\u6587\u4ef6(<i>Recently Files<\/i>)<i> ctrl+E<\/i>\n<\/p>\n<p>\n\t\u5173\u95ed\u5f53\u524d\u6253\u5f00\u7684\u4ee3\u7801\u680f(<i>close<\/i>)<i> ctrl + w<\/i>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u5173\u95ed\u6253\u5f00\u7684\u6240\u6709\u4ee3\u7801\u680f(<i>close all<\/i>)<i> ctrl + shift + w<\/i>\n<\/p>\n<p>\n\t\u5feb\u901f\u641c\u7d22\u7c7b\u4e2d\u7684\u9519\u8bef(<i>next highlighted error<\/i>)<i> ctrl + shift + q<\/i>\n<\/p>\n<p>\n\t\u9009\u62e9\u8981\u7c98\u8d34\u7684\u5185\u5bb9(<i>Show in Explorer<\/i>)<i> ctrl+shprivate static int num<\/i>;<i>ift+v<\/i>\n<\/p>\n<p>\n\t\u67e5\u627e\u65b9\u6cd5\u5728\u54ea\u91cc\u88ab\u8c03\u7528(<i>Call Hierarchy<\/i>)<i> ctrl+shift+h<\/i>\n<\/p>\n<p>\n\t<i>\u548c MyEclipse \u4e00\u6837\uff0cIdea \u5e26\u6765\u4e86\u597d\u7684\u5f00\u53d1\u4f53\u9a8c\uff0c\u4f46\u662f\u5b83\u4e5f\u5bf9\u7cfb\u7edf\u7684\u8981\u6c42\u8f83\u9ad8\u3002\u597d\u7684\u4f53\u9a8c\u4e00\u822c\u90fd\u662f\u5efa\u7acb\u5728\u727a\u7272\u7cfb\u7edf\u6027\u80fd\u4e4b\u4e0a\u7684\u3002Eclipse \u514d\u8d39\uff0c\u4e5f\u4e00\u6837\u53ef\u7528\uff0c\u5982\u679c\u516c\u53f8\u5bf9\u8f6f\u4ef6\u7248\u6743\u8981\u6c42\u8f83\u9ad8\uff0c\u5efa\u8bae\u8fd8\u662f\u4f7f\u7528 Eclipse \u4e3a\u597d\uff0c\u4e0d\u8981\u523b\u610f\u53bb\u4f7f\u7528 idea\u3002<\/i>\n<\/p>\n<p>\n\t<i>\u540e\u9762\u4e1a\u4f59\u8349\u8fd8\u4f1a\u8fdb\u884c\u5206\u4eab\u4e00\u4e9b\u5173\u4e8e idea \u6a21\u7248\uff0c\u5feb\u901f\u81ea\u52a8\u751f\u6210\u6216\u5e38\u7528\u8bed\u53e5\u7b49\u3002<\/i><\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2932\">Intellij idea \u5e38\u7528\u5feb\u6377\u952e\u5927\u5168<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>idea \u5f00\u53d1\u5de5\u5177\u88ab\u8d8a\u6765\u8d8a\u591a\u7684\u516c\u53f8\u91c7\u7528\uff0c\u5305\u62ec\u4e00\u4e9b\u56fd\u5185\u7684\u5927\u516c\u53f8\u3002\u5982\uff1a\u963f\u91cc\uff0c\u767e\u5ea6\u5185\u90e8\u7684\u670b\u53cb\u900f\u9732\uff0c\u6709\u4e0d\u5c11\u670b\u53cb\u90fd\u5728\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[787,871,345,961,344],"class_list":["post-2932","post","type-post","status-publish","format-standard","hentry","category-java","category-yyzt","tag-eclipse","tag-idea","tag-myeclipse","tag-961"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2932"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions"}],"predecessor-version":[{"id":2933,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2932\/revisions\/2933"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}