Visual Studio代码括号不会向下移动

问题描述:

当我使用普通的Visual Studio 2015时,如果我键入此{,那么当我按Enter键时,它将自动放在其旁边zh_cn都向下移动,但是在Visual Studio代码上确实想自动向下移动 

when i use the normal visual studio 2015 if i type this { then a } wil automaticly put next to it en when i press enter en both move down but on visual studio code is doent want to move automaticly down 

http://imgur.com/a/QKnOk,以便更好地理解

http://imgur.com/a/QKnOk for better understanding

抱歉英语不好

欢迎访问MSDN论坛.

参考您的描述和共享屏幕截图,我在VS 2015和VS上进行了尝试代码.看起来VS 2015可以在您输入"{"之后,自动填写字符}" VS代码,需要您在键入"{"之后手动键入}",对吗?将光标置于"{}"之间并按Enter键后,我将获得与您共享的屏幕截图相同的结果.

Refer to your description and the share screenshot, I tried it on my VS 2015 and VS code. It looks like the VS 2015 can autocomplete the character ‘}’ after you type ‘{’ and in VS code, it need you to manual type ‘}’ after type ‘{’, right? Once you put the cursor between ‘{}’ and press Enter key, then I will get the same result as your shared screenshot.

据我了解,自动填充和显示'{}'的行为可以帮助我们最好知道一个声明的开始和结束,这对于我们的发展非常明智.如果 您要删除此智能提示,请转到工具"-选项"-文本编辑器"-所有语言"/或要禁用的特定语言,可以在设置"下找到自动完成括号"选项,如以下屏幕截图所示, 行为与VS代码相同.

As I understand, the behavior of autocomplete and display ‘{}’ can help us to better to know the begin and end of one statement, it is very intellisense for our development. If you want to remove this intellisense, please go to Tools-Options-Text Editor-All Languages/ or the specific language that you want to disable, you can find the option ‘Automatic brace completion’ under Settings like the following screenshot, then you will get the same behavior as VS code.

最好的问候,

Sara

Sara