Java Studio syntax highlighting not working

In android studio (version 1.1.0) I am having trouble getting the .java syntax highlighting. It currently only highlights keywords, commas, semicolons, and comments. Other file types such as .xml are highlighted correctly.

I've tried the following things ...

  • Reinstall Android Studio
  • Removing personal settings
  • In "Settings -> Editor" Changed colors for anything to see worked under shared and Java
  • File -> Invalid Caches
  • In the File Types section, I declared my file as a Java source file.
  • Make sure Power Save Mode is off.
+3


source to share


1 answer


The .java file was in the root directory. I moved the file to "src / main / java / org.we /" and the syntax started working.



+1


source







All Articles