Found a really nice synergy between Kotlin and the...
# intellij-plugins
b
Found a really nice synergy between Kotlin and the IntelliJ Platform SDK: you can replace most singletons in your codebase with Kotlin's
object
declarations (cf. https://kotlinlang.org/docs/reference/object-declarations.html#object-declarations), so instead of writing
ActionManager.getInstance().getAction("SomeAction").doSomething()
, you can just write
SomeAction.doSomething()
. The API has lots of calls similar to
SomeManager.getInstance()
(cf. https://github.com/JetBrains/intellij-community/search?utf8=%E2%9C%93&q=Manager.getInstance%28%29&type=Code)