Plugin upon creation of a new project

Answered

Need to clarify that i am completely new to plugin development. i need to do certain action upon a creation of a new project. Should i use a listener for that? if so which one is the best, cuz ProjectManagerListener and PostStartupActivity dont suit.

 

P.S it is for Goland if it matters

0
2 comments

Hi,

I'm not sure if you already set up your project for GoLand. If not, see: https://plugins.jetbrains.com/docs/intellij/goland.html#goland-plugin-setup

Regarding listening to the project creation, see com.goide.project.GoProjectLifecycleListener.

About registering listeners: https://plugins.jetbrains.com/docs/intellij/messaging-infrastructure.html#messaging-api-usage

0

Hello,

To perform actions upon project creation in GoLand, use ProjectManagerListener, which monitors project lifecycle events. Implement the projectOpened method for actions post-initialization and register it in your plugin.xml. Avoid PostStartupActivity as it's not specific to project creation.

 

 

0

Please sign in to leave a comment.