79560410

Date: 2025-04-07 16:55:37
Score: 1
Natty:
Report link

I use my cursor to highlight/select the member variables of my java class (for example "protected Integer id;", which causes a small lightbulb icon to appear in the left margin. When I hover over this lightbulb, Visual Studio displays a tooltip that reads "Show Code Actions". When I click this lightbulb, a popup menu provides options to "Generate Getters and Setters", "Generate Getters", "Generate Setters", etc.

edit: I just noticed this question is tagged for C# but my answer is for Java. Rather than delete my answer I thought I'd just leave it here in case it helps someone else. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: iosparkletree