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.