So I'm trying to make a project using Spring Boot and I had been able to use the "Generate Setters/Getters" button before on this same file but for some reason that option is no longer available in the dropdown. Could someone provide an explanation for why this is and what may have happened to this option?
Try this: Right click >> Source Action
See here for a list of actions.
Right click and select 'Source Action'
Select 'Generate Getters and Setters...'
Select fields of class and click ok.
You might be missing the add-on "Java Code Generators" which you can download from the marketplace. I installed this and I was able to generate getters and setters.
The solution posted by Madhu works. I added the image below for anyone to follow along.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With