?Eclipse????Java???淶
???????????? ???????[ 2014/5/4 10:43:03 ] ????????Eclipse java????
???????淶???????????????????????????????????????????????????????
?????????????±?????????????????Java?????????Eclipse???????????????????顣??Eclipse??????????????淶????????????????????
???????Eclipse?????? Ctrl + F ???????????????????????д???????棬????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????Ctrl + F????????????????Щ??????????????????
??????Eclipse?????????淶???ú??????д????????Ctrl + Shift + F?????????????????????????????????????????
?????????????????淶??????????????淶??????????????????Eclipse??
????1?? ????JDK?汾????????
????Eclipse?е?????????????Windows -> Preferences ??????????Java????????????λ??Windows -> Preferences -> Java?С?
??????1????JDK?汾
????????Java???????????????JDK?汾??MyEclipse???????Jdk????eclipse??С?
???????????μ??????????????JDK??
??????????Java -> Complier?У???Compiler compliance level ?????1.6 ??
?????????Java -> Installed JREs??????У????????JDK????????????JDK?????????add -> Stankard VM -> Next ->Directory ????λ??JDK????У?Finish??
??????2??????????
????preferences->General ??? workspace??????????????Text file encoding?????Other?????Utf-8?????????????????utf-8??????
????2??Java Doc??????????棩
????Window -> Preferences -> Java -> Code Style ???д??????????????????????????Code Style->Code Templates?????á?
??????1????????JavaDoc????????
????Comments -> Files???????Edit...???????????JavaDoc???????????????£?
????/**
????* Copyright <year> Xxx Inc.
????*/
??????2??????/??????????JavaDoc???????????????????
????????Comments -> type??????/???JavaDoc??棬Methods???÷?????
????3????????????
??????????????????????????Formatter??
??????Code Style????У????Formatter???????????????Formatter?????"New..."???????????
????????????????????????檔
????????????????Fomatter????????????????????
??????1??????Eclipse?е?tab???4????????????鷳??
??????????????????Indentation???????Tab policy??????spaces only ???漴?ɡ?
??????????????????TAB??window->preference ->General->Editors->Text Editors??????????insert space for tabs????У????棻
??????2??????????Indentation?????????????????????Preview?????仯??????
????Statements within 'switch' body ????????ù????
??????3??????????Braces??????????????С?
??????????class/Interface?????饗????????????????????Same Line??????????????Next Line??
??????4???????????White Space??????????
????????????????????е??????????????????????????й????????????????????????????????
??????????????????????????г?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11