Cant generate anything in intelliJ other than copyright

Answered

Hi, I am using intelliJ and i wanted to generate constructors but when i go to generate menu i only see cipyright option and that's it. I don't see any option to generate anything.

0
4 comments

Hello,

It depends on cursor location. Please try to put caret inside class and open "Generate"

0

Hi there,

did you manage to solve this problem, please ?

In one of my projects I can no longer generate anything (getter, setter, whatever…). I  tried to delete the .idea folder and reopen the project, but that did not work.

I tried suggestion in post  and that worked. If I create a new project and add a new class, it works, I can generate stuffs.

If I open another already existing project and try to generate something, it works.

Can you please help me on that one :) ?

Thank you for your help.

Olivier 

 

1

Check if your class has a closing curly brace. If not, add it in the end and place your caret within the class. That should do it

0

Olivier Lemaire 
Do you still encounter this issue? Which version of the IDE are you using (Help > About)?
Could you please share the file/sample project in which you faced the issue? You can upload it here: https://uploads.jetbrains.com, just provide the uploaded file ID.  Thanks!

0

Please sign in to leave a comment.