简体   繁体   中英

Android Studio: Language Defaults are applied instead of Java scheme

I've downloaded a couple of schemes for Android Studio. However, after applying the scheme the Java scheme is not used even though my files are *.java and Android Studio draws a little (J) on the icon. The "Language defaults" are used instead which don't provide enough highlighting.

How can I force Android Studio to use the Java scheme? The default scheme doesn't have too many colours, so it's hard to differentiate.

Edit: The project was exported from Eclipse and imported to Android Studio.

I just found the solution myself. The src directory wasn't recognized as Sources Root . After I did that the editor magically applied the Java scheme, yay!

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