简体   繁体   中英

Java Editor in Eclipse is acting like a plain text editor

Java editor is not working on my eclipse.

  • Ctrl + Space does not suggest anymore
  • No more color coding (for classes, interfaces, methods, imports , etc.) is no longer present.
  • Ctrl + Click to redirect to class being instantiated in not working. It looks like its working like a plain text editor.

在此处输入图片说明

I have also noticed that the J icon before the class name has been replaced by what looks like text editor icon. I tried to reset perspective but it hasn't made a difference,

  • You may be opening the file in text editor mode
  • Try opening in Java Editor mode by right clicking on the file as shown in the below image

在此处输入图片说明

  • Once done, syntax highlighting should work as shown below

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM