工作之余,整理了一下,Visual Studio 里面的快速生产代码缩写集合,这个拿出来分享想一下,希望对您有所帮助。

文件下载地址:VS内置生产代码缩写集合文档.rar

首字母 简写 生成代码
a attachedProperty public static readonly ??? propertyNameProperty = ???.RegisterAttached(
    "propertyName",
    typeof(propertyType),
    typeof(HomeController),
    new
PropertyMetadata(default(propertyType)));

public static void SetpropertyName(DependencyObject element, propertyType
value)
{
   
element.SetValue(propertyNameProperty, value);
}

public static propertyType GetpropertyName(DependencyObject element)
{
    return
(propertyType)element.GetValue(propertyNameProperty);
}

Attribute  [AttributeUsage(AttributeTargets.All,
Inherited = false, AllowMultiple = true)]
 private sealed class MyAttribute :
Attribute
 {
     // See the attribute guidelines
at
     //  http://go.microsoft.com/fwlink/?LinkId=85236
     private readonly string
positionalString;

// This is a positional
argument
     public MyAttribute(string
positionalString)
     {
         this.positionalString =
positionalString;

// TODO: Implement code
here
         throw new
NotImplementedException();
     }

public string PositionalString {
get; private set; }

// This is a named
argument
     public int NamedInt { get; set;
}
 }

     
c checked  
class   
ctor  public A1()
{
}
ctx  
cw Console.WriteLine();
     
d do do{

}while(ValidateRequest);

     
e ear TYPE[] types = new TYPE[] { };
   
enum enum MyEnum
{
}
equals  
   
Exception  
   
else  
     
f for for (int i = 0; i < UPPER;
i++)
{

}

   
forr for (int i = length - 1; i >=
0; i--)
{

}

   
foreach foreach (var VARIABLE in
COLLECTION)
{

}

   
from from VAR in ViewEngineCollection

{

}

     
h hal Html.ActionLink("TEXT", "ACTION",
"Account")
     
i    
if if (ValidateRequest)
{
}
   
invoke EventHandler temp =
MyEvent;
if (temp != null)
{
    temp();
}
   
ital for (int i = 0; i <
arrayList.Count; i++)
{
      object array =
(object)arrayList[i];
}
   
itar for (int i = 0; i <
array.Length; i++)
{
    var a = array[i];
}
   
itdg foreach (var i in
ViewData)
{
    var key = i.Key;
    var value = i.Value;
}
   
itdic foreach (DictionaryEntry
dictionaryEntry in dictionary)
{   
     object key =
(object)dictionaryEntry.Key;
     object value =
(object)dictionaryEntry.Value;
}
   
itli for (int i = 0; i <
ViewEngineCollection.Count; i++)
{
     object key =
(object)dictionaryEntry.Key;
     object value =
(object)dictionaryEntry.Value;
}
   
indexer  public object this[int index]
 {
            get
            {
                 /* return the
specified index here */
            }
            set
            {
                /* set the specified
index to value here */
            }
}
   
interface interface Iinterface
{
}
   
iterator public
System.Collections.Generic.IEnumerator<ElementType>
GetEnumerator()
{
       throw new
NotImplementedException();
       yield return default(ElementType);
}
   
iterindex  public class MyViewIterator
 {
     private readonly MyViewIterator
outer;

internal
MyViewIterator(MyViewIterator outer)
     {
         this.outer = outer;
     }

// TODO: provide an appropriate
implementation here
     public int Length
     {
         get
         {
             return 1;
         }
     }

public ElementType this[int
index]
     {
         get
         {
             //
             // TODO: implement
indexer here
             //
             // you have full access
to MyViewIterator privates
             //
             throw
             new
NotImplementedException();
             return
default(ElementType);
         }
     }

public
System.Collections.Generic.IEnumerator<ElementType>
GetEnumerator()
     {
         for (int i = 0; i <
this.Length; i++)
         {
             yield return
this[i];
         }
     }
 }       

     
l lock lock (ViewEngineCollection)
{

}

     
m mbox  System.Windows.Forms.MessageBox.Show("Test");
     
n nguid A509913F-295B-480F-A022-854A81045C6E
     
o out  Console.Out.WriteLine("");
   
outv Console.Out.WriteLine("ViewEngineCollection = {0}",
ViewEngineCollection);
     
p pci  public const int 
   
pcs  public const string 
   
prop public TYPE Type { get; set; }
   
propg  public int I { get; private set; }
   
psr  public static readonly 
   
psvm   public static void Main(string[] args){}
     
r rta RedirectToAction("ACTION", "Account")
   
ritar for (int i = array.Length - 1; i
>= 0; i--)
{
     var a = array[i];
}
     
s sfc var type = ViewEngineCollection
as TYPE;

if (type != null)
{
   
}

   
switch switch (@enum)
{
       
}
   
svm static void Main(string[]
args)
{
     
}
   
sim static int Main(string[]
args)
{
    
     return 0;
}
   
struct struct MyStruct
{
     
}
     
t thr throw new 
   
toar (object[])arrayList.ToArray(typeof(object))
   
try try
{

}
catch (Exception)
{
   
    throw;
}

   
tryf try
{

}
finally
{
   
}

     
u ua Url.Action("ACTION", "Account")
   
unchecked unchecked
{
   
}
   
unsafe unsafe
{
   
}
   
using using (this)
{
    
}
     
w while while (true)
{
    
}
     
 
   

Visual Studio 内置快速生产代码简写集合的更多相关文章

  1. 【转】在Visual Studio中怎样快速添加代码段

    原文网址:http://blog.csdn.net/yl2isoft/article/details/9735527 以前一直只知道,键入prop,再按两次tab键,会生成自动属性代码. 今天闲着无事 ...

  2. visual studio内置“iis”组件提取及二次开发

    简介 visual studio安装后会自带小型的“iis”服务器,本文就简单提取一下这个组件,自己做一个小型“iis”服务器吧.先来说用途吧(废话可绕过),比如在服务器上没有安装iis,或者给客户演 ...

  3. visual studio 2013怎样快速查看代码函数关系--代码图

    可以发现没有调试运行代码时是无法查看代码图的,可以在某行加一个断点,如下图,并开始debug调试: 这时,就会在代码调试工具栏看到代码图按钮,点击它: 右边就会出现代码图了: 这下就方便多了. 不仅适 ...

  4. Visual Studio使用正则表达式快速统计总共代码行数

    原文:Visual Studio使用正则表达式快速统计总共代码行数 按CTRL+SHIFT+F,勾上支持正则表达式,然后输入搜索内容: <span style="font-family ...

  5. 如何在 Visual Studio 中使用 Git 同步代码到 CodePlex

    开源社区不管在国内还是国外都很火热,微软也曾因为没有开源而倍受指责,但是随着 .Net framework.ASP.Net MVC等框架的逐渐开源,也让大家看到了微软开源的步伐.CodePlex 则是 ...

  6. 微软良心之作——Visual Studio Code 开源免费跨平台代码编辑器

    微软良心之作——Visual Studio Code 开源免费跨平台代码编辑器 在 Build 2015 大会上,微软除了发布了 Microsoft Edge 浏览器和新的 Windows 10 预览 ...

  7. [转]如何在 Visual Studio 中使用 Git 同步代码到 CodePlex

    本文转自:http://www.cnblogs.com/stg609/p/3673782.html 开源社区不管在国内还是国外都很火热,微软也曾因为没有开源而倍受指责,但是随着 .Net framew ...

  8. [转]通过Visual Studio为Linux编写C++代码

    Build 2016大会上Microsoft首次公布的Visual Studio 2015扩展提供了在VS2015中编写C++代码,随后通过Linux/UNIX计算机进行编译和执行的能力.这种想法非常 ...

  9. Visual Studio 2013 Ultimate的可视化代码功能

    可视化和了解代码综合了如何使用visual studio可视化代码来帮助理解代码: 理解代码和代码之间的关系:(1)Code Map(2)Dependency Graphs 理解代码交互:Sequen ...

随机推荐

  1. 判断URL是否存在

    判断URL是否存在   判断网址是否存在,可以使用下面方面处理.如果HttpStatusCode为OK,说明网址存在.

  2. yum在线升级

    RPM优点 由於 RPM 是透过预先编译并打包成为 RPM 文件格式后,再加以安装的一种方式,并且还能够进行数据库的记载. 所以 RPM 有以下的优点: RPM 内含已经编译过的程序与配置档等数据,可 ...

  3. iOS 网络编程:NSURLSession

    NSURLSession类和相关的类提供很多API来下载HTTP的内容.这些API提供多种delegate协议来支持验证和执行后台下载任务. 1 URL Session 设计概念 Session中的任 ...

  4. Java并发——显示锁

    Java提供一系列的显示锁类,均位于java.util.concurrent.locks包中. 锁的分类: 排他锁,共享锁 排他锁又被称为独占锁,即读写互斥.写写互斥.读读互斥. Java的ReadW ...

  5. Unity3D 之3D游戏SD快打 3D游戏基础入门开发全(1)

    这里记录一个U3D游戏,3D游戏的基本开发. 导入素材 1.首先导入需要的素材.因为FBX格式的素材是通用的,所以尽量导入这样的资源使用 导入后的结果: 然后对人形骨骼进行设置. 看哪里没有映射到骨骼 ...

  6. java 静态方法

    在使用java的时候,你会发现,有些对象,需要new ,有些则不需要时,比如Math类 ); 如果你查看源码就会大致的发现,里面的属性和方法都是静态的: public static double si ...

  7. 一些简单的帮助类(2)-- JavaSctipt Array Linq

    在日程工作中经常会遇到这样的问题 一个JS数组 我们要找出其中 一些符合要求的类容 又或者对数组里的类容求和求平均数之类的一般的做法是循环里面的类容做判断添加到一个新的集合里 var array = ...

  8. Linux的前世今生

    Linux的起源 说到Linux[/ˈlɪnəks/],想必大家也会自然而然地想到他的创始人——被称为“Linux之父”的林纳斯·托瓦兹(Linus Torvalds).其实,在Linux出现之前,还 ...

  9. 浅析JAVA设计模式(二)

    2. 里氏替换原则:LSP(Liskov Substitution Principle)里氏替换原则,定义为只要父类出现的地方子类就可以出现,而且用子类替换后,程序也不会出现问题,使用者根本不用关心是 ...

  10. 通过 ANE(Adobe Native Extension) 启动Andriod服务 推送消息(一)

    项目组用air来开发手游, 但有些在原生应用里很容易实现的功能没有办法在air中直接调用,比如说震动,服务等等.但Adobe 提供了一种方法让air间接调用本地代码(java,object-c...) ...