VS2012敲代码技巧
2013-10-10 20:32
246 查看
相应字符+Tab+Tab,可以自动实现代码段。
eg:输入pro再按两次Tab键可自动完成代码段: public int MyProperty { get; set; }
如图:
按两次Tab键后
下面是一些关键字及其说明:
常用:
#if
#region
class
ctor 创建构造函数
cw 输出Console.Write()
do
enum
for
foreach
if
namespace
mbox 输出MessageBox.show()
prop 创建属性
sim 创建int Main()
sum 创建void Main()
struct
switch
testc 创建测试类
testm 创建测试方法
try
tryf
using
while
其它:
Attribute,checked,forr,indexer,invoke,iterator,interindex,lock,,mvcaction3,mvcaction4,mvcpostaction3,mvcpostaction4,propa,propd,profull,propg,unchecked,unsafe,wde,wdp
eg:输入pro再按两次Tab键可自动完成代码段: public int MyProperty { get; set; }
如图:
按两次Tab键后
下面是一些关键字及其说明:
常用:
#if
#region
class
ctor 创建构造函数
cw 输出Console.Write()
do
enum
for
foreach
if
namespace
mbox 输出MessageBox.show()
prop 创建属性
sim 创建int Main()
sum 创建void Main()
struct
switch
testc 创建测试类
testm 创建测试方法
try
tryf
using
while
其它:
Attribute,checked,forr,indexer,invoke,iterator,interindex,lock,,mvcaction3,mvcaction4,mvcpostaction3,mvcpostaction4,propa,propd,profull,propg,unchecked,unsafe,wde,wdp
相关文章推荐
- [原]VS2012敲代码技巧
- Dijkstra in python
- 用C语言实现有限状态自动机FSM
- Eclipse(PHP、JAVA)的快捷键大全
- python之列表使用方法总结
- c++中map的用法详解
- ububtu eclipse 如何用maven添加jar包
- Header files(头文件)c++头文件的一些东西!
- Java数值转化为二进制、十进制、十六进制字符串
- Xlib库基本图形编程
- 编程珠玑摘录
- 有多个文件的程序,c++的心得!
- 文件I/O编程
- 文件I/O编程
- C/c++输入输出函数
- 【第三章】c++里面的标准库类型
- hdu—1004巨坑爹,以后编译用G++而不用C++
- 编程名言名句
- 模块删除页代码
- Liquibase+spring