简体   繁体   English

Visual Studio Indent做奇怪的事情

[英]Visual Studio Indent does weird things

This issue i'm having is a big mystery for now for days , i tried searching the internet but i can't find an explanation. 我现在遇到的这个问题已经有好几天了,我尝试在互联网上搜索,但是找不到解释。

Before the issue occured my code looked like this: 在问题发生之前,我的代码如下所示: 布局好

But now everytime i ty to add something it looks like this 但是现在每次我想添加看起来像这样的东西 在此处输入图片说明

VS does this after i press enter between {}. 在我按{}之间的Enter之后,VS会执行此操作。 So that my issue and i can't figure it out.. Did i hit a keycombo , did devexpress or resharper broke it , I don't know. 这样我的问题就无法解决了。我不知道是否打了键盘,是否用devexpress或resharper弄坏了它。 So does anybody have an idea how to fix this 所以有人有办法解决这个问题吗

I'm assuming your tab indexes have changed, you can change them back following these steps: 我假设您的标签索引已更改,您可以按照以下步骤将其更改回:

  • Open Tools / Options: 打开工具/选项:

在此处输入图片说明

  • Select Text Editor / Your Language / Tabs: 选择文本编辑器/您的语言/标签:

在此处输入图片说明

You may need to format the file for the tabs to re-adjust again :-) 您可能需要格式化文件以使标签重新调整:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM