Quickly create dependency properties in VS

The code snippet for DPs is propdp, enter that and hit tab twice, then cycle through the fields with tab and fill them in.


New(ish) versions of ReSharper

Newer versions of ReSharper come with the dependencyProperty snippet built in. So start typing "dependencyProperty" and it should pop up as an option for you to select (with the tab key).

In my opinion, this option is preferable because it comes with better defaults and formatting.


Old versions of ReSharper

If you're using an old ReSharper but still want to use Visual Studio's dependency property code snippet (without downloading anything), type PROPDP in all caps and then hit tab once.

IntelliSense will come up with "No suggestions" but insert the code snippet anyway.


There are code snippets for dependency properties. (such as propdp)

See this article for more information.

You can get some here.


As a side note, (and someone correct me if I'm wrong please!).

If you're using ReSharper, it overrides the default snippet/templating system and doesn't have a propdp equivalent as shipped.

I found a ReSharper propdp snippet here.