简体   繁体   English

C#:Visual Studio不应用缩进规则

[英]C#: Visual studio does not apply indentation rules

I'm using visual studio 2017. Ever since installing and subsequently unistalling ReSharper, I cannot stop visual studio form indenting my brackets. 我使用的是Visual Studio2017。自从安装并随后放心使用ReSharper之后,我就无法停止Visual Studio表格使括号缩进。 During removal of ReShaprer, I used an option that essentially said "restore VS details". 在删除ReShaprer的过程中,我使用了一个选项,该选项实际上表示“恢复VS详细信息”。

What I've tried so far: 到目前为止,我已经尝试过:

  • Manually disabling indentation via the Tools menu 通过“工具”菜单手动禁用缩进
  • Using the Import and Export Settings Wizard to reset all my settings 使用导入和导出设置向导重置我的所有设置

在此处输入图片说明

To automatically indent all of your code 自动缩进所有代码

  1. In Tools , Options , select Text Editor , All Languages , Tabs , and then select Smart from the Indenting group box. 在“ 工具” ,“ 选项”中 ,选择“ 文本编辑器” ,“ 所有语言” ,“ 选项卡” ,然后从“缩进”组框中选择“ 智能 ”。

  2. To select this option on a per-language basis, select Smart in the appropriate folder, starting by selecting Options from the Tools menu. 若要按语言选择此选项,请从相应的文件夹中选择“智能”,首先从“工具”菜单中选择“选项”。 For example, to set Smart formatting for Visual Basic, select Smart from the Indenting group box in Text Editor, Basic, Tabs. 例如,要为Visual Basic设置智能格式,请从“文本编辑器”,“基本”,“选项卡”的“缩进”组框中选择“智能”。

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

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