Visual Studio代码括号不会向下移动 [英] Visual studio code brackets doesnt move down

查看:121
本文介绍了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


这篇关于Visual Studio代码括号不会向下移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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