1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-04-11 03:15:49 +02:00

Add support for Settings Sync

This commit is contained in:
chylex 2024-12-01 15:35:41 +01:00
parent 2977a08009
commit f4b6bc7637
Signed by: chylex
SSH Key Fingerprint: SHA256:WqM8X/1DDn11LbYM0H5wsqZUjbcKxVsic37L+ERcF4o
2 changed files with 3 additions and 1 deletions
README.md
src/main/kotlin/com/chylex/intellij/coloredbrackets/settings

View File

@ -5,4 +5,5 @@ This is a fork of the [🌈Rainbow Brackets](https://github.com/izhangzhihao/int
## Key Changes
- Support for CLion and Rider
- Support for Settings Sync
- Fixed service initialization warnings reported by 2024.2+

View File

@ -2,12 +2,13 @@ package com.chylex.intellij.coloredbrackets.settings
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.SettingsCategory
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.util.xmlb.XmlSerializerUtil.copyBean
import org.jetbrains.annotations.Nullable
@State(name = "ColoredBracketsSettings", storages = [Storage("colored_brackets.xml")])
@State(name = "ColoredBracketsSettings", storages = [Storage("colored_brackets.xml")], category = SettingsCategory.UI)
class RainbowSettings : PersistentStateComponent<RainbowSettings> {
/**
* default value