Question

This seems like a stupid issue, but I can't seem to find an option to generate interface code with in the newest SharpDevelop build. When I search the site I get a lot of mentions of Alt+Ins and the Tools menu but those options do not appear to be available in the newest build. I can right click and extract interfaces but there doesn't seem to be any option to stub them in. What am I missing?

Was it helpful?

Solution

In SharpDevelop 4.1 put the mouse cursor on the class name or on the interface name. You will then see an icon appear on the left hand side of the text editor.

Implement interface - class or interface selected

Then press Ctrl+T to display a pop-up menu.

Implement interface - pop-up menu

This will give you a list of interfaces you can implement. Select the appropriate interface using the up and down arrows and press the Enter key. Then code will be generated for that interface.

Generated interface code

Whenever you see this icon you can generate code. For more information on this feature take a look at the New productivity features blog post by Martin Konicek.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top