[英]What is the best way to save information between runs of plugin?
I'm looking for the best way to save user information between two runs of a Plugin for IntelliJ. 我正在寻找在IntelliJ插件两次运行之间保存用户信息的最佳方法。
What is the best way to do that? 最好的方法是什么?
are there special tools of IntelliJ to do that? 有IntelliJ的特殊工具可以做到这一点吗?
Thanks 谢谢
For simple things you can use com.intellij.ide.util.PropertiesComponent interface. 为了简单起见,您可以使用com.intellij.ide.util.PropertiesComponent接口。 If it's not enough, implement com.intellij.openapi.components.PersistentStateComponent interface.
如果还不够,请实现com.intellij.openapi.components.PersistentStateComponent接口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.