Skip to content

Instantly share code, notes, and snippets.

View tscharke's full-sized avatar

Thomas Scharke tscharke

View GitHub Profile
@denisborovikov
denisborovikov / plugin.groovy
Last active February 25, 2024 19:09
Collapse MUI sx prop in Webstorm using LivePlugin
View plugin.groovy
import com.intellij.codeInsight.folding.impl.EditorFoldingInfo
import com.intellij.codeInsight.folding.impl.FoldingUtil
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.editor.Document
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.FoldRegion
import com.intellij.openapi.editor.ex.FoldingModelEx
import java.util.regex.Pattern