{"id":402,"date":"2012-01-11T01:51:17","date_gmt":"2012-01-11T01:51:17","guid":{"rendered":"http:\/\/brain.dailyon.net\/?p=402"},"modified":"2012-01-11T01:51:17","modified_gmt":"2012-01-11T01:51:17","slug":"eclipse-eclipse-shortcuts%ec%97%90-%eb%8c%80%ed%95%9c-%ec%9e%90%eb%a3%8c","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=402","title":{"rendered":"eclipse : Eclipse Shortcuts\uc5d0 \ub300\ud55c \uc790\ub8cc"},"content":{"rendered":"<p>\/\/TODO \ub098\uc911\uc5d0 \ub2e8\ucd95\ud0a4\ub294 \ucca8\ubd80\ud558\ub3c4\ub85d&#8230;.<\/p>\n<p>\uc74c&#8230; \uc778\ud130\ud398\uc774\uc2a4\uc120\uc5b8\ud558\uace0 \uad6c\ud604\ud074\ub798\uc2a4\uc5d0\uc11c unimplement methods\ub97c \ube60\ub974\uac8c \ud558\uace0\uc2f6\uc5c8\ub2e4.<br \/>\n\uae30\ubcf8 \ub2e8\ucd95\ud0a4\ub294 \uc5c6\uace0 \ub2e8\ucd95\ud0a4 \uc124\uc815\ud574\uc11c \uc4f0\uc790. OK?<\/p>\n<p>Eclipse Shortcuts<\/p>\n<p>Useful Eclipse shortcuts and hints: <\/p>\n<p>Using Eclipse shortcuts and code generation can make programming faster and more efficient.<\/p>\n<p>Auto Complete:<\/p>\n<p>I\u2019m sure you noticed when you type a variable and then a period, a list pops up with the methods that variable has. However, sometimes you may be in the middle of typing a function or want to get the variables and methods list on \u2018this\u2019 without typing \u2018this.\u2019 To bring up that list at any time, press<\/p>\n<p>&#8211; Control + Space Bar<\/p>\n<p>You can then keep typing to narrow down the list, use arrow keys to navigate the list, tab to view the JavaDocs, or enter to finish typing the name.<\/p>\n<p>Auto Imports:<\/p>\n<p>This is my favorite feature. Lets say you want to use a LinkedList. You either have to import java.util.LinkedList at the top or use the full package name every place you want to use it. Instead, just type \u201cLinkedList list;\u201d You will notice Eclipse will mark it red because it can\u2019t find the class. Then press<\/p>\n<p>&#8211; Control + Shift + O for Windows or Linux.<\/p>\n<p>&#8211; Command + Shift + O for Mac<\/p>\n<p>This will organize your imports by including classes you need, or removing unused imports.<\/p>\n<p>Generate Getters and Setters:<\/p>\n<p>Right click on your class file and go to \u2018Source\u2019 -&gt; \u2018Generate Getters and Setters\u2019 and select the getters and setters you want for which variables.<\/p>\n<p>Override \/ Implement methods:<\/p>\n<p>If you implement an interface or extend a class, Eclipse will give you an error for not implementing required methods. To fix this, just click on the error and click \u2018Add unimplemented methods.\u2019 Sometimes it is useful to see a list of methods you can implement or override. To do this, right click on your java file and go to \u2018Source\u2019 -&gt; \u2018Override\/Implement Methods.\u2019 Then select the desired methods.<\/p>\n<p>References:<\/p>\n<p>A lot of times, it can be useful to know what methods use certain methods, variables, or classes. To find where something is used, select the name, and press<\/p>\n<p>&#8211; Control + Shift + G for Windows or Linux.<\/p>\n<p>&#8211; Command + Shift + G for Mac<\/p>\n<p> You can also right click on the name, and go to \u2018References -&gt; workspace.\u2019 Notice you can also search the project or hierarchy. You can also find where something is declared by selecting \u2018Declarations\u2019 instead of \u2018References.\u2019<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/TODO \ub098\uc911\uc5d0 \ub2e8\ucd95\ud0a4\ub294 \ucca8\ubd80\ud558\ub3c4\ub85d&#8230;. \uc74c&#8230; \uc778\ud130\ud398\uc774\uc2a4\uc120\uc5b8\ud558\uace0 \uad6c\ud604\ud074\ub798\uc2a4\uc5d0\uc11c unimplement methods\ub97c \ube60\ub974\uac8c \ud558\uace0\uc2f6\uc5c8\ub2e4. \uae30\ubcf8 \ub2e8\ucd95\ud0a4\ub294 \uc5c6\uace0 \ub2e8\ucd95\ud0a4 \uc124\uc815\ud574\uc11c \uc4f0\uc790. OK? Eclipse Shortcuts Useful Eclipse shortcuts and hints: Using Eclipse shortcuts and code&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/402"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=402"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}