Visual Studio 2012新特性一览

A quick tour of the new features in Visual studio 2012.

Code window resize

A feature you can turn on/off is automatic resizing of the code window.

When you are editing your code, selecting the code window maximizes it at the expense of Solution Explorer, the Output pane, etc.

Visual Studio 2012   Visual Studio 2012

Edit code while it executes

You could do it with Visual Basic 6 back in the '90s and finally you can do it in VS2012.

While the code is executing, you can pause it (breakpoint / debugging) and modify the code. Just as it did back in the '90s, the compiler will carry on working with the code you just wrote.

Visual Studio 2012

Visual Studio 2012
Google It!

They just made everyone's life easier.


Automatically add semicolons.

Rumour has it that the compiler will also automatically add closing brackets and braces.


Advanced copy and pasting of code

The art of developing good software includes the skill of copying and pasting code found on the Internet.

To make your life easier, VS2012 will apply some sense to the pasted code and rewire it for you.

Simply write your stub method...

Ask a question at StackOverflow.com or maybe try Googling the code you need. Once you have it, simply copy the code and paste it into your stub method.

...then the magic begins.

Visual Studio 2012

The compiler has recognised and wired up your connection string, replaced "textBox1.Text" with "term", and because you are returning a string from this method, it assumes that you want the first result from the table and so will suggest returning that for you.

Visual Studio 2012

Evil Code Monkey ™

After copying and pasting code, things can get pretty messy really quickly.

IntelliSense now includes Evil Code Monkey™ which will point out your ugly code, shaming you into Googling the correct way to write it.

VS2012

Language Style

VB, C# or F# - it's all just language styles!

When you are viewing code you can opt to have it translated from its original source into VB, C# or into some of the new styles.

Simplified Visual Basic is an easier, prettier language.

VS2012

Rush-C Is super-abbreviated, keyboard shortcut style C#

VS2012

Add Reference dialog

Finally they figured out what people meant when they asked for a proper "Add Reference" dialog.

They now provide the ultimate mix of speed and flexibility.

VS2012

With thanks to Peter for proof reading


转载自:http://www.ianquigley.com/A75_New_features_of_VS2012.html 版权归原作者所有.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值