eclipse中文註釋顯示為unicode
阿新 • • 發佈:2019-02-08
我的maven工程 properties檔案裡的中文註釋顯示為unicode 格式的,看起來很麻煩。而且也不想通過其它工具轉碼來使用。
可以通過安裝 eclipse 的 propedit 外掛來編輯。這樣該外掛會自動進行中文到 unicode 的轉換。
安裝後,可以使用 PropertiesEditor 來編輯對應的檔案,則會直接顯示中文。編輯儲存後會自動進行轉換。如果用其它 editor 開啟,則會直接顯示 unicode.
外掛安裝方法如下:
輸入的內容分別是: proedit http://propedit.sourceforge.jp/eclipse/updates/
安裝完後會提示重啟 eclipse. 重啟完後,properties 檔案前面會有一個綠色的 P:
在該檔案上點右鍵,在Open With 下級選單中會看到有一個 PropertiesEditor, 選擇後就會看到中文正常顯示了。編輯等都正常。同樣,該檔案如果用其它的確 Editor 開啟,會發現是 unicode 編碼的。
我按照上面的步驟,安裝成功了,感謝原作者,原文地址:http://blog.sina.com.cn/s/blog_5f54f0be0101hb3r.html
輸入的內容分別是: proedit http://propedit.sourceforge.jp/eclipse/updates/
安裝完後會提示重啟 eclipse. 重啟完後,properties 檔案前面會有一個綠色的 P:
我按照上面的步驟,安裝成功了,感謝原作者,原文地址:http://blog.sina.com.cn/s/blog_5f54f0be0101hb3r.html