zoukankan      html  css  js  c++  java
  • vs2005 快捷代码小片段

    VS2005的Code Snippet 很有用,可以加快代码输入,可以自定义很多代码小片段(不过是XML格式的需要自己创建),而且可以在网上升级(不过我到现在都没看到可用的升级)。不过用他的default snippet就已经很爽了。使用时只要输入快捷码,双击tab键就可以自动生成相应的代码片断
    Default Code Snippets

    Code Snippet Name

    Description

    #if

    This code snippet surrounds code with #if and #endif directive.

    #region

    This code snippet surrounds code with a #region and #endregion directive.

    ~

    This code snippet inserts a destructor.

    attribute

    This code snippet inserts a declaration for a customized attribute, which is a class derived from System.Attribute.

    checked

    This code snippet surrounds code with a checked block.

    class

    This code snippet inserts a class declaration.

    ctor

    This code snippet inserts a constructor.

    cw

    This code snippet inserts a Console.WriteLine statement.

    do

    This code snippet surrounds code with a do while block.

    else

    This code snippet inserts an else block.

    enum

    This code snippet inserts an enum declaration.

    equals

    This code snippet overrides the Equals method inherited from the System.Object type.

    exception

    This code snippet inserts the declaration of an application exception, which is derived from System.Exception.

    for

    This code snippet surrounds code with a for loop.

    foreach

    This code snippet surrounds code with a foreach loop.

    forr

    This code snippet surrounds code with a decrementing for loop.

    if

    This code snippet surrounds code with an if block.

    indexer

    This code snippet inserts an indexer function.

    interface

    This code snippet inserts an interface declaration.

    iterator

    This code snippet inserts an iterator.

    interindex

    This code snippet inserts a named iterator and indexer.

    invoke

    This code snippet inserts and invokes an event.

    lock

    This code snippet surrounds code with a lock block.

    mbox

    This code snippet inserts the MessageBox.Show statement.

    namespace

    This code snippet surrounds code with a namespace.

    prop

    This code snippet inserts a property and backing field.

    propg

    This code snippet inserts a read-only property. Read-only properties have only a get method.

    sim

    This code snippet inserts an entry point method that is static and returns an integer.

    struct

    This code snippet inserts a struct declaration.

    svm

    This code snippet inserts an entry point method that is static and returns void.

    switch

    This code snippet inserts a switch statement.

    try

    This code snippet inserts a try-catch block.

    tryf

    This code snippet inserts a try-finally block.

    unchecked

    This code snippet surrounds code with an unchecked block.

    unsafe

    This code snippet inserts an unsafe block.

    using

    This code snippet surrounds code with a using block.

    while

    This code snippet surrounds code with a while loop.

  • 相关阅读:
    解决关于ArcGIS10.2服务手动启动的问题
    简单利用XSS获取Cookie信息实例演示
    Sublime text 3 如何格式化HTML/css/js代码
    和你一起做一百件事
    两个人在一起,无论做什么都觉得很浪漫。 盘点了情侣之间一定要做的100件事,做完这100件事就结婚吧!
    摩根士丹利
    2016中国app年度排行榜:十大行业、25个领域、Top 500 和2017趋势预测
    国外最受欢迎的十大社交APP网站
    中国境内PEVC投资公司名单
    2015中国10大最佳创业投资人(含50强完整名单)
  • 原文地址:https://www.cnblogs.com/xh831213/p/684940.html
Copyright © 2011-2022 走看看