Visual Studio 内置快速生产代码简写集合

工作之余,整理了一下,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)
{
    
}
     
 
   
时间: 2024-08-02 16:50:47

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

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

原文网址:http://blog.csdn.net/yl2isoft/article/details/9735527 以前一直只知道,键入prop,再按两次tab键,会生成自动属性代码. 今天闲着无事,就整理了一下在Visual Studio中其他快速添加代码段的方法. 1.自动属性 键入prop,再按两次tab键,会生成自动属性代码. [csharp] view plaincopy public int MyProperty { get; set; } 通过实验发现,输入pr,pro,proc

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

微软良心之作--Visual Studio Code 开源免费跨平台代码编辑器 在 Build 2015 大会上,微软除了发布了 Microsoft Edge 浏览器和新的 Windows 10 预览版外,最大的惊喜莫过于宣布推出免费跨平台的 Visual Studio Code 编辑器了! Visual Studio Code (简称 VS Code / VSC) 是一款免费开源的现代化轻量级代码编辑器,支持语法高亮.智能代码补全.自定义热键.括号匹配.代码片段.代码对比 Diff.GIT 等

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

本文转自:http://www.cnblogs.com/stg609/p/3673782.html 开源社区不管在国内还是国外都很火热,微软也曾因为没有开源而倍受指责,但是随着 .Net framework.ASP.Net MVC等框架的逐渐开源,也让大家看到了微软开源的步伐.CodePlex 则是微软自己的一个开源社区,里面聚集了很多开源的项目,那么我们如何才能把自己的开源项目放到这上面呢? 在继续阅读本文前,请确定您已经在 Visual Studio 中安装了 Git 相关的扩展程序,并且大

带你玩转Visual Studio——带你高效管理代码

上一篇文章带你玩转Visual Studio--带你高效开发通过对VAssistX优秀插件的讲解,让我们掌握了快速开发C++代码的技能.然而大部分的程序都不是一个人的开发的,是由一个团队的多个人一起开发的,大型的系统还可能由多个不同的团队分包进行开发.多人进行协作开发时,代码的管理就显得及为重要,需要借助代码管理工具的辅助,这种工具又称为版本控制系统. 目前主流的版本控制系统有: CVS:是一个用于代码版本控制的自由软件,它是一个比较早出现的工具,由于它有很多自身的缺陷,现在几乎被SVN所取代了

Visual Studio 2013新建工程导入现有代码文件夹并且保持目录结构

本文提供了一个在Windows环境下使用Visual Studio 2013编辑现有源代码并且保持目录结构的方法.本文使用VS2013中文社区版做示例(本版本为免费版,可在VS官网下载),其他版本的VS操作方式类似.打开VS2013,选择[菜单]-[新建]-[从现有代码创建项目]选择项目类型:Visual C++项目文件位置:创建完成后会在这个目录生成sln,suo,vcxproj,filters和user等VS解决方案和项目文件,这个必须和源代码的根目录保持一致,否则不能导入文件夹结构.项目名

Visual Studio Code - 调试 Node.js 代码

官方的文档写的太好了!大家还是看参考资料吧. 参考资料: Debugging in Visual Studio Code Debug Node.js Apps using Visual Studio Code 原文地址:https://www.cnblogs.com/jffun-blog/p/10217690.html

数据类型内置方法:列表/元组/集合

list列表类型内置方法 作用:多个装备.多个爱好.多门课程,甚至是多个女朋友 定义方式:[]内用逗号隔开,可以有多个任意数据类型的元素 friends_list = ['longzeluola','canglaoshi','qiaobenai','nick'] lis = list('abcd') 方法: 优先掌握 索引取值(正向取值+反向取值) 即可取又可存 #list之索引取值 name_list={'nick','jason','tank','sean'} name_list[0]='n

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

按CTRL+SHIFT+F,勾上支持正则表达式,然后输入搜索内容: [csharp] view plaincopyprint? <span style="font-family:Microsoft YaHei;font-size:18px;">^:b*[^:b#/]+.*$</span>   说明:#开头和/开头或者空行都不计入代码量.如果需要只统计代码文件的代码量,可以选择查找文件的类型,比如什么*.xml, *.resx….可以不检查,只查*.cs,*.c,

Visual Studio 创建封装自己的代码段(C#)

https://www.cnblogs.com/awaTangjay/p/6644952.html 1.打开vs2012--工具--代码段管理器 2.进入代码管理器之后,语言选择Visual C#,然后复制位置框中的地址 3.打开我的电脑,在地址栏粘贴上面复制的地址按下回车就会跳转到我们要去的目录下 4.在该目录下随便复制一个代码段文件(这里我复制cw.snippet文件) 5.上面复制代码段文件的目的是可以在其基础上修改来封装自己的代码段(这里我粘贴到了桌面上,将代码段文件名改成了我自己要封装