惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
罗磊的独立博客
雷峰网
雷峰网
量子位
V
Visual Studio Blog
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
月光博客
月光博客
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
腾讯CDC
Engineering at Meta
Engineering at Meta
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
Jina AI
Jina AI
A
About on SuperTechFans

博客园 - coffeeliu

09论文资料 DataGridViewCheckBoxCell扩展 vs2008 webbrowser 与网页双向通信的方法 2008毕业设计问题汇总 警惕股市房市拉大贫富差距 毕业设计2稿评述 2007实训指导书 5.18请将毕业设计论文电子稿发给我 2007毕业设计模版 2007毕业设计任务书下载 oracle 游标(学校) (oracle)九、安全(一) 可口可乐和百事可乐查出杀虫剂成分! (oracle)八、表 (oracle)七、OEM概述 (oracle)六、卸载oracle (oracle)五、oracle软体结构 (oracle)四、存储结构 (oracle)三、启动关闭数据库
vs2005 快捷代码小片段
coffeeliu · 2006-08-27 · via 博客园 - coffeeliu

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

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.