Last active
December 29, 2015 17:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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