SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Siegfried Pammer

SharpDevelop 4.2: Reimplemented "Create properties"

One of the features still missing after "Alt+Ins" was removed, "Create properties" was reimplemented and added to the recent builds of SharpDevelop 4.2 (master branch).

It can be reached by selecting "Create properties" from the refactoring main menu, or by typing propall and pressing tab in the editor (C# only):

It will insert a small dialog at the caret position:

You can select all the fields you want to create properties for. As you can see there are some options, you can choose whether to generate the setter of a property. Additionally you can choose to implement INotifyPropertyChanged. It will implement the interface, if it has not been implemented yet, and will add an OnPropertyChanged method. A call to OnPropertyChanged will be inserted into each property setter:

I hope you like the return of this feature. Leave comments if you have any suggestions or problems!



Michael Seeger said:

Wow! I'm very, very pleased about that.

October 31, 2011 9:09 AM

Blue Ninja said:

Thank you! The Alt-Ins menu is one of my most-missed features to have been removed, and this helps make it not so bad.

November 3, 2011 7:57 PM
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.