Custom Colors Don't Work
So,
I am an VisualStudio user, so bear with me here. Recently I've inherited a java project, and as the closest to knowing java at my company, I got elected to take it over. So, i've opened the project in IntelliJ IDEA and immediately went to the settings to define my own custom color set, to more or less match my general mappings I use in Visual Studio.
I copied the Darcula scheme, and then renamed it to my own custom scheme, and went to work, redefining all of the different syntax highlighting definitions. In the example window it looks perfect, but when i applied it, a few of the colors took:
- Comments
- Symbols (braces, parentheses, etc)
- strings
- keywords
Everything else is just monotone. no variable, class, method, or other colors are applied. I've only tweaked the General section and the Java section, nothing else, but the java colors are NOT translating as expected.
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
IntelliJ IDEA 2021.2.1 (Community Edition)
Build #IC-212.5080.55, built on August 23, 2021
Runtime version: 11.0.11+9-b1504.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1960M
Cores: 8
Kotlin: 212-1.5.10-release-IJ5080.55
请先登录再写评论。
Hello Jaedenruiner,
I am not an expert but I just want to tell you that you are experiencing issues with applying your custom color scheme in IntelliJ IDEA for a Java project. Here are a few steps you can take to troubleshoot and resolve the problem:
Double-check the Scope: When defining the syntax highlighting for your custom scheme, make sure you have selected the correct scope. In this case, ensure that you are modifying the syntax highlighting settings for the Java language specifically.
Check for Inherited Settings: Some syntax highlighting settings in IntelliJ IDEA can be inherited from the default or another color scheme. Check if your custom scheme inherits any settings from the Darcula scheme or any other scheme. If it does, you may need to modify or disable those inherited settings to achieve the desired colors.
Clear Caches: IntelliJ IDEA caches the syntax highlighting settings, and sometimes cached data can cause issues. Try clearing the caches by going to "File" -> "Invalidate Caches / Restart" and then select "Invalidate and Restart". This will clear the caches and reload the IDE.
Verify the Color Definitions: Double-check the color definitions you have set for the various syntax elements such as variables, classes, and methods. Ensure that the colors are defined correctly and not conflicting with other elements.
Try a Different Color Scheme: If the issue persists, try applying a different color scheme, preferably one that is specifically designed for Java development. This will help determine if the problem is specific to your custom scheme or a more general issue.
Update IntelliJ IDEA: Make sure you are using the latest version of IntelliJ IDEA. Newer versions often include bug fixes and improvements that may address issues with syntax highlighting. Ball Sports Pro