Skip to content

Instantly share code, notes, and snippets.

@sandord
Last active December 29, 2015 17:29
Show Gist options
  • Save sandord/d9c04a40085425329a09 to your computer and use it in GitHub Desktop.
Save sandord/d9c04a40085425329a09 to your computer and use it in GitHub Desktop.
Replace multi line property get/set by single line variant in Visual Studio
Open the find/replace (in files) dialog.
Enable regular expressions.
Replace
([\n]*)([\s]*)([\n]*){([\s])([\n])([\s]*)get;([\n]*)([\s]*)set;([\s])([\n])([\s]*)}
by
{ get; set; }
(include a leading space)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment