csharpextensions
csharpextensions copied to clipboard
Cannot tell from the documentation how to create ctor from properties
How are you causing the context menu to come up that has the Create Constructor from Properties option? There is no indication in the README.
If you are doing Right-Click then I do not see that option. I see the standard context menu.
Command-. does nothing in the context you show. I have no lightbulb on that line.
How should I be using this extension?
Same here! I am using it on a Windows 10 machine. No clue how to trigger this extension-specific context menu. Also is there a way to edit the templates that are generating the code? Please Help.
Figured it out. It's the default "lightbulb" shortcut. Ctrl+.
works for me.
@dlumpp - where is the "lightbulb" shortcut? On which line of source do you have the caret?
I have tried every line in the file and am not getting the lightbulb or when I do there is no Create Constructor from Properties menu item.
@klmcwhirter - I don't actually see the light bulb appear. I have the cursor just after the last constructor parameter, then use the Quick Action keyboard shortcut.