To configure Rainbow Variables and semantic highlighting in the Rainbow Brackets plugin, use the options in the plugin’s settings panel. These settings control how variables are colored in your editor and how the plugin interacts with the IDE’s semantic highlighting system.
Option 1: Enable Rainbow Variables/Semantic Highlighting
To use rainbow variable coloring provided by the plugin, check the Rainbow Variables option and leave I will enable "Semantic Highlighting" by myself (restart required) unchecked. After changing these settings, restart your IDE for the changes to take effect. This configuration enables the plugin’s variable coloring and lets the plugin manage semantic highlighting automatically. This is the recommended setup for most users who want consistent rainbow coloring for variables.
Option 2: Disable Rainbow Variables/Semantic Highlighting
If you do not want to use rainbow variable coloring or semantic highlighting, uncheck both Rainbow Variables and I will enable "Semantic Highlighting" by myself (restart required). This disables both the plugin’s variable coloring and any plugin-managed semantic highlighting for variables.
Restart Required
After changing either of these settings, you must restart your IDE for the changes to take effect. The plugin cannot apply these changes dynamically due to IDE limitations.
Troubleshooting and Notes
- If variable colors appear white or semantic highlighting does not work as expected, ensure you have not enabled both
Rainbow VariablesandI will enable "Semantic Highlighting" by myself. These options can conflict, especially in recent IDE versions. The recommended configuration is to enable onlyRainbow Variablesand leave the manual semantic highlighting option unchecked, then restart the IDE. - The issue where semantic highlighting could be incorrectly disabled on restart has been resolved. If you still encounter problems, make sure you are using the latest version of the plugin and IDE.
- The plugin now supports Svelte control flows and offers improved compatibility with C/C++ Language Support on IntelliJ 2025.3+.
- Settings Backup and Sync are now supported, making it easier to maintain your configuration across environments.
- In rare cases, toggling these settings may not immediately restore variable coloring. If this occurs, try invalidating IDE caches and restarting again.
For more details and advanced troubleshooting, see the official issue discussions or consult the plugin’s issue tracker. For a full list of supported languages and features, refer to the plugin documentation.