AndroidcodeformattingAndroidformatting,CheckstyleandFindbugs2010-09-02AndroidformattingCheckstyleUsageFindbugsUsageContentsImportandroidformattingSelect"Window›Preferences›Java›Code Style".Use"Formatter›Import"toimportandroid-›Import" indevelopment/ide/,RightclickProjectNameandgotoSource->Format, Help->SoftwareUpdates...Addanewinstallationsiteandprovidehttp://eclipse-cs./update/ ,aswellasfutureoptionalfeatures,thenpress Install...()ReviewandconfirmthepluginstoinstallRestartEclipseInstallcheckstyleCopy“”samplefiletopluginfolder.<E:\eclipse\.>(1)InEclipsegoto Window->PreferencesClickthe New... buttontocreateanewcheckstyleconfigurationChooseTypeto“ExternalConfigurationfile”,Browserthefile“”Pressedtheconfiguration,andclicktheSetasdefaultbuttontosetitasdefaultcheckfileConfigcheckstyle(2)ConfigurethecheckfileDirectlymodifythexmlfileConfigurefilebyGUIIncheckstylewindow,selectone“CheckConfiguration”andclick“Configure…”(3)!...Configcheckstyle(4)!...
《android代码规范化.》 来自淘豆网m.daumloan.com转载请标明出处.