MyEclipse工具的优化使用
工具優(yōu)化:
1、修改當前工作區(qū)下所有項目編碼:Window->Preferences->General->Workspace->Text File Encoding改為UTF-8
2、修改當前項目編碼:項目->右鍵->properties->Text File Encoding改為UTF-8
3、增刪工具欄圖標:Window->Customize Perspective
4、調(diào)整字體:文件內(nèi)右鍵->Preferences->General->Appearance->Colors and Fonts
5、修改默認打開視圖: Window->Preferences->General->Editor->File Associations->修改視圖
6、修改啟動和關閉時加載的插件:Window->Preferences->General->Startup and Shutdown
7、修改最大行寬:Window->Preferences->Java->Code Style->Formatter->Line Wrapping(自帶格式無法編輯,必須新建)
8、修改Jsp編碼:Window->Preferences->Myeclipse->Files and Editors->Jsp的Encoding改為UTF-8
9、恢復myeclipse默認設置:File->Switch Workspace查看工作空間路徑,進入目錄,刪除.metadata回復默認
10、查看&清理內(nèi)存:Myeclipse->Utilities->Show Heap Status
11、代碼補全提示:Window->Preferences->Java->Editor->Content Assist
12、修改Myeclipse的maven版本為自己下載的:Window–>Preferences–>MyEclipse–>Maven4MyEclipse–>Installations;同時修改用戶配置:Window–>Preferences–>MyEclipse–>Maven4MyEclipse–>User Settings
13、將JRE版本改為默認:Configure Build Path->Edit JRE Library->選Workspace Default JRE(以防別人機子上的jdk版本不同)
14、添加@自動提示:Window->Preferences->Java->Editor->Content Assist->**** for java->在“.”后添加“@”符號
15、設置新建jsp默認編碼:Window–>Preferences–>MyEclipse–>Files and Editors->JSP
16、將tab替換為4個空格:Window -> Preferences -> General -> Editors -> Text Editors,選中“Inserts spaces for tabs”
17、JDK不使用MyEclipse自帶的JRE:Window->Preferences->Java->Installed JREs->Search
18、Myeclipse 2013中去除derby:安裝目錄\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info,搜索derby注釋整行
19、加大Myeclipse中Console的顯示行數(shù):Window->Preferences->Run/Debug->Console,去掉對Limit console output的選擇,或者選擇后設置buffer size值
20、禁止Myeclipse自動彈出控制臺:Window->Preferences->Run/Debug->Console,取消勾選 Show when program writes to standard out(當console中有輸出時彈出)前的選項和 Show when program writes to standard error(當console中有錯誤時彈出) 前的選項
21、Eclipse中查看當前工程的JDK(編譯)版本:項目->右鍵->properties->Java Complier
22、Eclipse中查看/修改當前工程的JRE版本:項目->右鍵->Run As->Run Configurations->Java Application->項目名->JRE
23、Eclipse中查看/修改代碼模板:Window->Preferences->Java->Editor->Templates
24、刪除Server視圖下的Myeclipse Tomcat:Myeclipse Tomcat->右鍵->Configure Server Connector->勾選Disable
25、查看Myeclipse啟動時默認的JVM(JRE):Window->
Preferences->Help->about Myeclipse->Installation Details->-vm 下的參數(shù)
26、修改Myeclipse啟動時默認的JVM(JRE):
①直接把要使用的JRE文件夾拷貝到Eclipse目錄下;
②修改eclipse.ini文件,添加-vm參數(shù),指定要運行的虛擬機的地址,使用-vm命令行自變量例子:-vm c:\jre\bin\javaw.exe
③修改MyEclipse或者Eclipse啟動的快捷方式。在快捷方式上“右鍵”---->“屬性”例如:
默認情況下,我的MyEclipse的快捷方式屬性是:
目標"D:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "d:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe"
啟始位置"d:\Program Files\MyEclipse 6.0\eclipse"
只需要把目標的內(nèi)容進行修改,例如我修改為:
"D:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "D:\Program Files\jdk1.6.0_24\bin\javaw.exe"
常用設置:
1、修改Copy來的項目web路徑名:項目->右鍵->properties->MyEclipse–>Project Facets-> Web->Web Context-root
2、添加User Libraries:Window->Preferences->Java->Build Path->User Libraries
3、myeclipse驗證jquery錯誤的問題:jquery-1.8.0.min.js-> 鼠標右鍵 -> MyEclipse -> manage validation -> 左面點擊 -> Excluded resources -> 找到jquery.js -> 打上鉤 -> apply
4、重新提示工作路徑:Myeclipse安裝目錄\configuration\.settings\org.eclipse.ui.ide.prefs ,修改SHOW_WORKSPACE_SELECTION_DIALOG=true或者Window->Preferences->General->Startup and Shutdown->Workspaces
或Window->Preferences->Java->Java dialogs->Clear按鈕
5、如何查看MyEclipse包含的Eclipse的版本號:打開安裝目錄下readme文件夾里的readme_eclipse.html文件或在控制臺輸入java -version
6‘、將myeclipse自帶類庫中的某個jar包移除:項目->右鍵->Build Path->Configure Build Path->選中需要修改的類庫->Edit->勾選Enable project specific advanced configuration
7、在package視圖下用樹形結構查看庫:點擊左側(cè)瀏覽視圖的箭頭->Package Presentation->Hierarchical
8、隱藏當前工作環(huán)境中關閉的工程:點擊左側(cè)瀏覽視圖的箭頭->Filters...->勾選Closed projects
9、修改xml文件格式化時的最大行寬:Window–>Preferences–>MyEclipse–>Files and Editors->XML-> XML Source->Line width
10、取消拼寫檢查:Window->Preferences->General->Editor->Spelling->取消勾選Enable spell checking前的復選框
11、關閉Maven4Myeclipse插件在Myeclipse啟動時updating indexes:Window => Preferences => Myeclipse=> Maven4Myeclipse取消勾選的Enable Maven4MyEclipse features
快捷功能:
1、查看快捷鍵列表:Ctrl+Shift+L
2、添加Import語句:Ctrl+Shift+M——(先把光標放在需導入包的類名上)
3、整塊向左縮進:Shift+Tab
4、輸出選中代碼:選中后按ALT+/,選擇sysout
5、快速編輯模式:Alt+Shift+A
6、替換/查找選中范圍的文本:選中->Ctrl+F->勾選Scope內(nèi)的Select Lines
總結
以上是生活随笔為你收集整理的MyEclipse工具的优化使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022中国素质教育行业报告
- 下一篇: hdu-1251(基本字典树)