工作之余,整理了一下,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. NIO学习:buffer读入与写出(文件复制示例)

    FileInputStream fInputStream=new FileInputStream(new File("/root/Desktop/testImage.jpg")); ...

  2. Spring MVC的异常统一处理方法

    我们经常需要统一配置项目的异常处理,又希望统一处理异常代码,同时不侵入原有的正常代码.我们可以通过以下三种方式实现统一处理项目的自定义异常. 通过SimpleMappingExceptionResol ...

  3. 百度编辑器umeditor使用总结

    百度编辑器是一个功能很全.很强大. 百度单张图片上传只能存储在项目下面,而不能独立自定义存储位置,因此重写上传代码 百度文章中的图片是通过base64实现的,直接存储在数据库中 tomcat通过虚拟路 ...

  4. 重命名计算机名称导致TFS版本管理下的工作区问题的修复

    1.问题 若在本地已有工作区之后,此时修改计算机名称重启生效后,打开本地的项目解决方案,输出窗口会提示如下图: 2.解决 输入命令:tf workspaces /collection:http://1 ...

  5. 图灵API

    namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine( ...

  6. 理解C#中的继承

    继承 1.创建子类对象的时候,在子类对象中会为子类对象的字段开辟空间,也会为父类对象的所有字段开辟空间.只不过父类私有的成员访问不到而已. 2.base关键字可以调用父类的非私有成员. 3.子类的访问 ...

  7. 判断是否为闰年(bool)

    bool为布尔型,只有一个字节,取值false和true #include<iostream>using namespace std;int main(){ int year; bool ...

  8. ios-异步消息同步问题-典型使用场景: 微信私信界面

    前言 在ios开发中常常会有聊天功能,一般简单聊天功能只传输文字,但是稍微复杂点儿会有图片发送功能了.最全而且可支持扩展的例如微信,qq 聊天功能了.传输方式各有千秋,如get,post,websoc ...

  9. MVC 读取图片

    /// <summary> /// 获取上传的图片 /// </summary>   public FileResult GetImages(string PhotoPath) ...

  10. C#冒泡排序法程序代码

    using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace Console ...