简体   繁体   English

Eclipse 中的 Java 编辑器就像一个纯文本编辑器

[英]Java Editor in Eclipse is acting like a plain text editor

Java editor is not working on my eclipse. Java 编辑器不适用于我的 Eclipse。

  • Ctrl + Space does not suggest anymore Ctrl + Space 不再建议
  • 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. Ctrl + 单击以重定向到正在实例化的类,但无法正常工作。 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.我还注意到类名之前的 J 图标已被替换为看起来像文本编辑器图标的东西。 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尝试通过右键单击文件以 Java 编辑器模式打开,如下图所示

在此处输入图片说明

  • Once done, syntax highlighting should work as shown below完成后,语法突出显示应如下所示

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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