eclipse和Myeclipse中的properties文件查看和编辑插件
Eclipse
*.properties屬性文件,如果文件中包含中文,會出現亂碼。為了解決這個問題,可以為Eclipse安裝Properties Editor插件解決這個問題。
步驟
1.安裝Properties Editor插件
Help –> Install New Software
在打開窗口“Work with”輸入:http://propedit.sourceforge.jp/eclipse/updates/ 回車
選擇PropertiesEditor 組件進行安裝即可。如果去掉“Contact all update sites during install to find required software” 可以跳過自檢。
安裝過程中,可能有警告,別管它,點擊是就可以。
安裝完畢后,重啟Eclipse。
2.Properties文件和Properties Editor關聯
如果安裝成功,則properties文件圖片會變成一個文本中有個綠色的P。
如果還不能用Properites Editor打開,則文件右擊 -> Open With -> PropertiesEditor即可
MyEclipse
myeclipse中一般是默認使用myeclipse properties editor打開properties文件,它會自動轉碼中文為unicode編碼(\u開頭)
解決辦法:可以使用PropertiesEditor插件
1.插件下載地址:
官網:http://propedit.osdn.jp/index_en.html(找到eclipse plugin那個位置)
csdn資源:
2.PropertiesEditor插件安裝方法:
解壓下載的插件zip包,里面有個eclipse文件夾,該文件夾下面有features和plugins兩個文件,
在myeclipse目錄下面的dropins下新建一個文件夾PropertiesEditor(該文件夾名就是在myeclipse里面的插件名)
將features和plugins兩個文件拷貝至新建的PropertiesEditor文件夾下,重啟myeclipse
然后,打開myeclipse郵件選中properties文件,open with -> PropertiesEditor
總結
以上是生活随笔為你收集整理的eclipse和Myeclipse中的properties文件查看和编辑插件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 逆向工程---Mybatis学习笔记(十
- 下一篇: 针对eclipse调式代码时打断点出现斜