Copy certain files after plugin installation Follow
I want certain files to be created from my plugin package to the user machine upon plugin installation and similarly, I want to delete those file after plugin uninstallation. Currently, I am doing this from extensions and actions.
Can you guide me on how to do this?
Please sign in to leave a comment.
To install files, use https://plugins.jetbrains.com/docs/intellij/plugin-components.html#project-open in combination with RunOnceUtil https://plugins.jetbrains.com/docs/intellij/ide-infrastructure.html#running-tasks-once.
To register "uninstall" hook, use listener com.intellij.ide.plugins.DynamicPluginListener#beforePluginUnload
Thank you. I will try this.