1、找到VS2013安装目录

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Interface

打开其中的Interface.cs

using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
namespace $rootnamespace$
{
    public interface $safeitemrootname$
    {
    }
}

再 interface  之前添加 public 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class

using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
namespace $rootnamespace$
{
    public  class $safeitemrootname$
    {
    }
}

在class 之前添加public

相关文章:

  • 2021-12-03
  • 2021-05-19
  • 2021-06-17
  • 2021-09-03
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2021-08-22
  • 2022-01-25
  • 2022-12-23
  • 2022-03-02
  • 2021-10-26
相关资源
相似解决方案