I have been playing with the structural search and replace feature and tried to create a pattern for replacing var i = new Type(); to a using statement. This is what my pattern looks like:
$type$ $var$ = new $type$($args$);
This is replaced with:
using($type$ $var$ = new $type$($args$))
However, I am never getting the fix to show up on code like this:
StringBuilder builder = new StringBuilder();
Any suggestions on what I am doing wrong?