Visual Studio Find-Replace tool using Regex Capturing -
i wondering if can use regex expression in visual studio's find , replace tool (edit -> quick replace), find:
system.nullable(of x)
and replace with:
x?
where x object type such date, guid, etc... (the code written in visual basic)
example 1: regex should able find: system.nullable(of guid)
, , replace with: guid?
example 2: same regex should able find: system.nullable(of integer)
, , replace with: integer?
so can use find-replace regex expression change:
public property id() system.nullable(of guid)
to:
public property id() guid?
to stop visual studio spamming me "name can simplified"
find system\.nullable\(of (\w+)\)
, replace $1?
Comments
Post a Comment