我正在为依赖于外部命名空间中定义的类型的 ReSharper 编写实时模板。
有没有办法告诉它“如果需要,添加一个 using 指令”,这样我就不必在每次使用后手动修复它
/* Template expands to */
var $ListName$ = new List<$Type$>()$END$;
/* But sometimes needs to import */
using System.Collections.Generic;
我正在为依赖于外部命名空间中定义的类型的 ReSharper 编写实时模板。
有没有办法告诉它“如果需要,添加一个 using 指令”,这样我就不必在每次使用后手动修复它
/* Template expands to */
var $ListName$ = new List<$Type$>()$END$;
/* But sometimes needs to import */
using System.Collections.Generic;