工作之余,整理了一下,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. 原创 C# 正则表达式 读写 Ini 文件

    昨天遇到读ini文件的问题,我知道C#里没有提供相应的类,所有的.net配置都是xml方式存储的. 读取ini文件,很多人直接google一把,然后添加dll引用.介绍的比较详细的,如: C#如何读写 ...

  2. linux内存管理解析1----linux物理,线性内存布局及页表的初始化

    主要议题: 1分页,分段模式及实模式 2Linux分页 3linux内存线性地址空间布局及物理内存空间布局 4linux页表初始化及代码解析 1.1.1内存寻址和保护模式 在X86平台上,内存控制单元 ...

  3. [转] React Native Navigator — Navigating Like A Pro in React Native

    There is a lot you can do with the React Native Navigator. Here, I will try to go over a few example ...

  4. android自定义View之仿通讯录侧边栏滑动,实现A-Z字母检索

    我们的手机通讯录一般都有这样的效果,如下图: OK,这种效果大家都见得多了,基本上所有的android手机通讯录都有这样的效果.那我们今天就来看看这个效果该怎么实现. 一.概述 1.页面功能分析 整体 ...

  5. Java基础知识强化之IO流笔记60:打印流 之 改进复制文本文件的案例

    1. 使用打印流改进复制文本文件的案例 2. 代码示例: package cn.itcast_03; import java.io.BufferedReader; import java.io.Buf ...

  6. Java基础知识强化之IO流笔记45:IO流练习之 把集合中的数据存储到文本文件案例

    1. 把集合中的数据存储到文本文件案例:    需求:把ArrayList集合中的字符串数据存储到文本文件 ? (1)分析:通过题目的意思我们可以知道如下的一些内容,ArrayList集合里存储的是字 ...

  7. Scala可变参数列表,命名参数和参数缺省

    重复参数 Scala在定义函数时允许指定最后一个参数可以重复(变长参数),从而允许函数调用者使用变长参数列表来调用该函数,Scala中使用“*”来指明该参数为重复参数.例如: scala> de ...

  8. Browser 对象

    Browser 对象 window对象表示浏览器中打开的窗口如果文档包含框架(iframe 或 iframe标签),浏览器会为HTML文档创建一个window对象,并为每个框架创建一个额外的windo ...

  9. ionic 手机端如何嵌入视频iframe

    需求说明:后台提供功能,可以通过富文本编辑器[summernote]上传优酷的视频链接地址(这里需要注意:优酷视频提供多种操作方式 下面截图说明,先做个标记): 客户端是通过ionic开发的:而上传的 ...

  10. C#垃圾回收机制详解

    一.托管代码/非托管代码 C#代码通过C#编译器编译成程序集,程序集由微软中间语言组成,CLR会为程序集开辟一个应用程序域,程序集就是运行在这个应用程序域里面的,应用程序域是相互独立的,互不影响. 托 ...