[英]Eclipse PDT: "<class> cannot be resolved to a type" for default php classes like DateTime, Exception etc
[英]Make eclipse pdt default editor for php, css etc. files in ubuntu 12.04?
我最近下載了Eclipse php。 當我想打開CSS或PHP文件時,它不顯示Eclipse選項,甚至在其他應用程序列表中也不顯示。
我想將Eclipse設置為我的默認編輯器,以處理此類文件。
我在一個多月前發布了這個問題,並且找到了答案,這是eclipse.desktop文件,需要將其添加到/ usr / share / applications目錄中
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse %f
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
在“ eclipse”之后添加%f將eclipse添加到“其他應用程序”列表中,然后我將css文件“設置為默認”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.