eclipse簡(jiǎn)單配置使開發(fā)更快更流暢
設(shè)置工作空間的項(xiàng)目編碼, 防止出現(xiàn)亂碼
Window - Preferences - General - Workspace
將"Text file encoding"選為"Other" - "UTF-8"
改變現(xiàn)有項(xiàng)目的編碼的步驟: 右擊項(xiàng)目屬性, 選擇"Text file encoding"的編碼
設(shè)置其它文件的編碼
Window -> Preferences -> General -> Content Types
將需要設(shè)置的文件設(shè)置編碼, 最好統(tǒng)一設(shè)為UTF-8
設(shè)置后, 如Javascript文件可正常顯示中文
設(shè)置創(chuàng)建JSP頁(yè)面時(shí),將JSP的默認(rèn)編碼設(shè)為UTF-8
Window -> Preferences -> MyEclipse -> Files and Editors -> JSP
將"Encoding"選為"ISO10646/Unicode(UTF-8)
去掉格式化JSP時(shí)頁(yè)面中的空行
Window -> Preferences -> MyEclipse -> HTML -> HTML Source
勾選"Clear all blank lines"
增強(qiáng)Eclipse的自動(dòng)代碼提示功能
默認(rèn)下, 只有按"."或"Alt + /"才出現(xiàn)代碼提示功能, 不夠強(qiáng)大, 作小小設(shè)置, 可將代碼提示功能像VS的一樣方便
1. Window -> Preferences -> Java -> Editor -> Content Assist
2. 將"Auto Activation triggers for java"設(shè)置為".abc"(默認(rèn)是"."), 點(diǎn)"Apply"應(yīng)用
3. 導(dǎo)出目前的Eclipse配置文件: File -> Export -> General -> Perferences, 選擇保存路徑, 保存得到*.epf文件
4. 用文本編輯器打開剛才保存的*.epf文件, 搜索".abc", 將".abc"部分改為
".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上為自動(dòng)提示的觸發(fā)字符,
根據(jù)個(gè)人習(xí)慣設(shè)置), 保存此配置文件(個(gè)人覺得不太好用,容易出錯(cuò))
5. 導(dǎo)入此配置文件: File -> import -> General -> Perferences, 導(dǎo)入修改后的配置文件.
第一個(gè)選項(xiàng)為反應(yīng)時(shí)間,可設(shè)為100左右(默認(rèn)200)
高亮類中同一引用的使用位置
Window -> Perferences -> General - > Editors -> TextEditors -> Annotations
選擇"Occurrences",勾引"Text as" -> "Highlighted"(塊高亮)或"Squiggles"(虛線)
Link with Editor
打開類后, 自動(dòng)在包管理器這里顯示類的位置
取消Myeclipse的自動(dòng)文件驗(yàn)證(卡傻的原因)
Windows –> Perferences –>Myeclipse –> Validation
保留manual(手動(dòng))部分,build下只留"classpath dependency Validator"
手動(dòng)驗(yàn)證: 右鍵文件 -> Myeclipse -> Run Validation
取消拼寫錯(cuò)誤檢查
我愛故意寫錯(cuò)單詞, 不需要系統(tǒng)幫我檢查
Windows –> perferences –> General –> Editors-> Text Editors -> Spelling
去掉"Enable spell checking"勾選
關(guān)閉不需要的啟動(dòng)項(xiàng)
MyEclipse:
Windows –> Perferences–> General–> Startup and Shutdown
我只保留了
順序下來(lái):
1, Tomcat6: 必備的...
2, 內(nèi)存監(jiān)視器: 可以查看Myeclipse的使用內(nèi)存, 我喜歡這工具(在菜單Myeclipse - Utilities - Show Heap Status打開)
3, JSP Debug工具, 其實(shí)我也沒用過, 怕有一天用到...
4, 文件創(chuàng)建向?qū)?個(gè)人經(jīng)常用到)
5, 向后兼容的意思吧, 怕有一天會(huì)用到, 但其實(shí)很少用, 可去掉
6, 透視圖, 應(yīng)該可以去掉吧...
其實(shí)就只用選擇Tomcat6
關(guān)閉自動(dòng)更新
1, Eclipse:
Windows –> Perferences–> Install/Update -> Automatic Updates
不勾選"Automatically find new updates and notify me"
2, Myeclipse:
1)Windows –> Perferences–> MyEclipse... -> Community Essentials
&nb sp; 不勾選"Search for new features at startup"
2)Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse
不勾選"Download repository index updates on startup"
第一:給MyEclipse 8.x Stable (8.0 GA) 添加啟動(dòng)畫面
在myeclipse.ini配置文件追加上一行代碼:
-
Dosgi.splashLocation=../Common/plugins/com.genuitec.myeclipse.product8_8.0.0.me200911192201/sp
lash.bmp
第二:讓Eclipse拖著myeclipse狂飚
技巧一:取消自動(dòng)validation
validation有一堆,什么xml、jsp、jsf、js等等,我們沒有必要全部都去自動(dòng)校驗(yàn)一下,只是需要的時(shí)候
才會(huì)手工校驗(yàn)一下,速度立馬提升好幾個(gè)檔次!
取消方法:
windows-->perferences-->myeclipse-->validation
除開Manual下面的復(fù)選框全部選中之外,其他全部不選
手工驗(yàn)證方法:
在要驗(yàn)證的文件上,單擊鼠標(biāo)右鍵-->myeclipse-->run validation
第三:MyEclipse耗內(nèi)存的決絕辦法
1 老是彈出Quick update error
這個(gè)問題的解決辦法是關(guān)閉自動(dòng)更新
Windows > Preferences > MyEclipse Enterprise Workbench > Community Essentials,
把選項(xiàng) "Search for new features on startup"的前勾去掉即可.
2 關(guān)閉updating indexes
Window > Preferences > Myeclipse Enterprise Workbench > Maven4Myeclipse > Maven>禁用Download
repository index updates on startup
3 關(guān)閉MyEclipse的自動(dòng)validation
windows-->perferences-->myeclipse-->validation
將Build下全部勾取消
如果你需要驗(yàn)證某個(gè)文件的時(shí)候,我們可以單獨(dú)去驗(yàn)證它。方法是,在需要驗(yàn)證的文件上( 右鍵 ->
MyEclipse -> Run Validation
4 啟動(dòng)優(yōu)化,關(guān)閉不需要使用的模塊
Window > Preferences > General > Startup andy Shutdown 在這里列出的是MyEclipse啟動(dòng)時(shí)加載的模塊
我這里只讓它加載tomcat5 勾選 MyEclipse EASIE Tomcat 5
5. 在myeclipse 7.0版本以上時(shí),
window-preferences-MyEclipse Enterprise Work-Maven4MyEclipse-Maven, 取消選中Download
repository index updates on startup!
6. 關(guān)閉更新調(diào)度:window --> preferences --> General --> Startup and Shutdown --> Automatic
Updates Scheduler(去掉前面的勾)
|