csharpextensions icon indicating copy to clipboard operation
csharpextensions copied to clipboard

Cannot tell from the documentation how to create ctor from properties

Open klmcwhirter opened this issue 7 years ago • 4 comments

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?

klmcwhirter avatar May 21 '17 01:05 klmcwhirter

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.

jared83 avatar Aug 29 '17 11:08 jared83

Figured it out. It's the default "lightbulb" shortcut. Ctrl+. works for me.

dlumpp avatar Sep 20 '17 16:09 dlumpp

@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 avatar Sep 23 '17 15:09 klmcwhirter

@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.

dlumpp avatar Sep 24 '17 12:09 dlumpp