VS 2013 支撑完成 [英] VS 2013 Brace Completion

查看:29
本文介绍了VS 2013 支撑完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用 Visual Studio 2013.我喜欢自动大括号完成功能.但是在 C# 中,当我在输入 { 后按 Enter 时,不会像在 eclipse 中那样形成额外的行来编写我们的代码.相反,光标将位于} 的左侧.有人注意到了吗?有没有办法修复它.

I just started using Visual Studio 2013. I liked the auto brace completion feature. But in C#, when I press enter after entering {, no extra line to write our code is formed, like in eclipse. Instead the cursor will be at the left side of the }. Did anybody notice that? Is there a way to fix it.

当我放大括号后按回车键时,编辑器是这样的:

When I press Enter key after putting brace, the editor is like this:

class Example {
|}

(光标是管道字符所在的位置..)

(The cursor is where the pipeline character is..)

我刚刚发现在 Visual C++ 2013 中,大括号按预期工作.

I just found that in Visual C++ 2013, the braces work as expected.

class Example {
    |
}

(光标是管道字符所在的位置..)

(The cursor is where the pipeline character is..)

推荐答案

检查文本编辑器/所有语言/常规页面上的选项.选择自动大括号完成".

Check within Options on the Text Editor/All Langauges/General page. Select "Automatic brace completion."

顺便说一下,在 2013 年,您可以在选项中的树视图控件顶部搜索诸如brace"之类的词,以查找所有页面都找到了brace".

By the way in 2013 you can search for words like "brace" at the top of the treeview control in Options to find all the pages were "brace" is found.

答案取自 此处.

这篇关于VS 2013 支撑完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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