让VS2013添加新类时自动添加public关键字
2016-07-25 10:35
369 查看
1、找到VS2013安装目录
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Interface
打开其中的Interface.cs
再 interface 之前添加 public
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class
在class 之前添加public
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
相关文章推荐
- 2016/7/25 D180C SPI flash增加代码记录
- 动态路由 RIP
- 细谈select函数(C语言)
- 细谈select函数(C语言)
- 微信接口CSDN博客
- java学习资源分享
- jvm类加载器
- Count and Say
- 在JS中用EL表达式访问request作用域里面的值得问题
- DB2 新增主键
- form表单关闭历史记录
- 7.20_计算机基础知识
- nncq---后台所有文章添加一个发布日期修改
- eclipse启动tomcat无法访问
- snprintf函数用法
- 区块链:起源、原理及应用
- nefu 2哥德巴赫猜想
- Ubuntu 安装 python3.5
- css实现百分比进度条
- git将远程仓库最新版本拉到本地仓库