MyElipse的使用小結
1:修改提示的快速鍵: Window -> Preferences -> General -> Keys 在type filter text欄輸入Content , 選中Content Assist , 如果存在快速鍵(不是自己習慣的快速鍵),點擊Remove Binding , 然後在Binding欄輸入自己習慣的快速鍵,這裡我設定了Alt+/ 。
2:配置Tomcat伺服器: Window -> Preferences -> Servers -> Tomcat -> Tomcat 6.x 在 Tomcat server欄目下選擇Enable , 然後指定Tomcat的安裝目錄。展開Tomcat 6.x目錄 -> JDK 指定JRE版本。
3:匯入Web Project: File -> Import -> Existing Projects into Workspace -> Next -> 選擇項目路徑 -> Finish
4:將Web Project匯出: File -> Export -> J2EE -> 選擇匯出類型 -> Next -> 選擇Web項目,指定匯出路徑和檔案名稱 -> Finish 。
5:更改點擊JSP頁面預設的視圖和代碼顯示為全代碼顯示: Window -> Preferences -> General –> Editors -> File Associations選擇右邊File types裡面的*.jsp , 在Associations editors列裡選擇MyEclipse JSP Editor , 然後點擊Default -> OK 。
6:更改JSP頁面的預設編碼ISO-8859-1為UTF-8,使其能在頁面支援中文: MyEclipse -> Perferences -> MyEclipse -> Files and Editor -> JSP選擇右邊的Encoding , 然後選擇ISO 10646/Unicode(UTF-8),點擊OK。
8:更改JDK版本:MyEclipse -> Perferences -> MyEclipse ->Java->Compile(建議一般不要更改)
9:匯入需要的jar包:右鍵點擊工程項目,下拉式清單中選擇Add external archives選擇要匯入的jar包。
10:取消MyEclipse自動更新功能 (1)Window --> Preferences --> General --> Startup and Shutdown -->找到"Automatic Updates Scheduler " 項去掉前面的勾。 (2)Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> Maven --> "Download repository index updates on startup" 去掉前面的勾。
原文連結:http://jasstion.javaeye.com/blog/416015