Skip to content

Instantly share code, notes, and snippets.

View tscharke's full-sized avatar

Thomas Scharke tscharke

View GitHub Profile
tscharke /
Last active November 7, 2016 15:33
2016.04 AngularJS Stammtisch DUS - Questions

Keybase proof

I hereby claim:

  • I am tscharke on github.
  • I am tscharke ( on keybase.
  • I have a public key ASDlXKOHXyO7U4Xwj4MMle0T-PATH5op0-1psrbWO9iH8wo

To claim this, I am signing this object:

tscharke / plugin.groovy
Last active February 25, 2024 16:24
Collapse Attributes (like MUI `sx`, React `className`) in JetBrains-Products using LivePlugin
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