[Tip: C# in VS]Some quick tips for working on C# in VS

1. Place your cursor, by a single click, immediately after the closing curly brace of the
Main method. This highlights the beginning and closing braces.
2. Press Ctrl+Enter. This inserts a new line between the curly braces, moves the cursor to

that line, and indents the cursor. Think about the number of keystrokes this saved you.

3. How to make use of snippet (take cw for console.write for example)

  1. Type c. This opens the IntelliSense window to the first command that starts with c.
  2. Type w. This traverses the IntelliSense list and brings you straight to the entry for cw. You can use IntelliSense to rip out code quicker than typing an entire keyword,
  which saves even more keystrokes. Also, observe that there is a torn-paper icon associated with cw, meaning that this is a snippet.
  3. Press Tab. This selects the snippet.
  4. Press Tab again. This executes the snippet, giving you a form to fill out. With each snippet, you must always press Tab twice. The first completes the snippet selection,
  and the second either gives you a form to fill out for changeable items or just places the cursor where you need to type. In this case, the second tab placed the cursor where you   need to type.
  5. Type "Simple VS2008 Program", including the quotes.

转载于:https://www.cnblogs.com/taoxu0903/archive/2010/02/21/1670524.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值