大括号自动完成在Visual Studio 2012 [英] Curly braces autocomplete in Visual Studio 2012

查看:1499
本文介绍了大括号自动完成在Visual Studio 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚从VS10到VS12迁移,好像大括号的旁边,在C#中的一些其他功能,如压痕是完全打破
为例类型(?):

Just migrated from vs10 to vs12 and it seems like the curly braces is completely broken along side with some other features like indentation in C# (?) for example type:

public static void myFunc() {

在Visual Studio 10将自动添加结束大括号它。
有一些电动工具或东西,可以解决这一问题,并给予相同的行为?
布雷斯完成者需要打功能之后输入它来添加。收盘括号

In visual studio 10 it would automatically add the closing curly brace for it. Is there some power tool or something that can fix this and give the same behavior? the Brace Completer requires to hit Enter after the function for it to add the closing braces.

此外,在工具 - >选项 - >文本编辑器 - > C# - > formatting->自动在}
默认情况下。

Also in tools->options->text-editor->c#->formatting-> automatically format completed block on } is turned on by default..

推荐答案

Visual Studio 2010中不会做在默认情况下(至少在我的情况)。你确定你没有使用像生产力电动工具的延伸

Visual Studio 2010 doesn't do that by default (at least not in my case). Are you sure you weren't using an extension like Productivity Power Tools

这其中一个支持VS2012:
HTTP ://visualstudiogallery.msdn.microsoft.com/0e33cb22-d4ac-4f5a-902f-aff5177cc94d

This one supports VS2012: http://visualstudiogallery.msdn.microsoft.com/0e33cb22-d4ac-4f5a-902f-aff5177cc94d

这篇关于大括号自动完成在Visual Studio 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆