工作之余,整理了一下,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. Error: no `server' JVM at...解决办法 【转】

    出现问题:用java -jar XXX.jar -server -Xms900m -Xmx900m 提示错误Error: no `server' JVM at `C:\Program Files\Ja ...

  2. 台湾书籍代购网址——2013-08-25 16

    台湾书籍代购 博客来http://www.books.com.tw 三民http://www.sanmin.com.tw 诚品http://www.eslite.com 金石堂http://www.k ...

  3. 通过NSURLProtocol拦截HTTP转HTTPS来整合SPDY的记录

    众所周知,iOS 9.0之后苹果引入ATS限制,苹果也推荐尽量不要使用HTTP通讯了,毕竟是很不安全的.而国内各个有(wu)节操的运营商也会经常篡改请求HTTP请求.所以如果可能,在不影响性能的情况下 ...

  4. ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值

    检查插入的值是否大于该字段数据类型约束的长度. 这个异常是指,用户向数据库执行插入数据操作时,某条数据的某个字段值过长,如 果是varchar2类型的,当长度超过2000,--4000(最大值)之间的 ...

  5. C# winCE连接SQL数据库

    General network error.  Check your network documentation. 错误解决方法 1. public static string Sqlstr = &q ...

  6. c语言学习之基础知识点介绍(十二):结构体的介绍

    一.结构体的介绍 /* 语法: struct 结构体名{ 成员列表; }; 切记切记有分号! 说明:成员列表就是指你要保存哪些类型的数据. 注意:上面的语法只是定义一个新的类型,而这个类型叫做结构体类 ...

  7. 在.Net中进行跨线程的控件操作(下篇:BackgroundWorker)

    在.Net中,如果我们在非UI线程上访问窗体上的控件的时候,会产生一个跨线程调用的异常,那么如何处理这种情况呢?在上一章中,我介绍了使用Control.Invoke方法,如果你不习惯使用委托,那么.N ...

  8. EDMX更新实体后出现键值映射问题

    近期做项目的EF改版时,在DB(ORACLE)中的表里添加一个新的PK,去除原有的PK. 在DB已添加完成操作,但这时在EDMX里进行从DB更新到EF里,更新完成后就发生如下错误提示: Error 6 ...

  9. Cordova5 -- iOS实战(一)

      由于最近公司的项目要求用Cordova来进行开发,便开始了对Cordova的学习.由于本人之前也是做iOS开发,因此相关内容主要从iOS平台的角度来写.刚开始学习Cordova这个平台,希望以此总 ...

  10. xcode插件安装完之后无法使用问题解决

    1.打开xcode插件所在的目录: 例如: ~/wangdi/library/Application Support/Developer/Shared/Xcode/Plug-ins /Users/su ...