Skip to content

Instantly share code, notes, and snippets.

@nickpreston24
Last active February 15, 2024 07:58
Show Gist options
  • Save nickpreston24/dbea7a7ce1db58099e70b2cf4174dcd9 to your computer and use it in GitHub Desktop.
Save nickpreston24/dbea7a7ce1db58099e70b2cf4174dcd9 to your computer and use it in GitHub Desktop.
#find
"(\w+)":\s*(.*),
#replace with
public string $1 {get;set;} = "$2";
# then fix 2x double quotes
#find
""
#replace with
"
# Blank the strings if you want:
# find
".*"
#replace with:
string.Empty
# All values should now be public C# strings with setter/getters and the inital values pasted are retained.
# From here, you may convert to whatever types you like.
# This script is only for expedience
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment