简体   繁体   English

在Visual Studio 2017设置中丢失-如何设置缩进?

[英]Lost in Visual Studio 2017 settings — how to set up indenting?

I'm sorry if I'm asking something obvious. 抱歉,如果我要提出明显的要求。 I've been using an older version of VS but recently had to switch to VS 2017 and now I'm lost in all the fluff in it. 我一直在使用旧版本的VS,但最近不得不切换到VS 2017,现在我迷失了其中的所有毛毛。 I'm trying to set up the indenting for C# code. 我正在尝试为C#代码设置缩进。 The easiest way is to show with a screenshot: 最简单的方法是显示屏幕截图:

在此处输入图片说明

So how do I make it put a tab there after I hit return from those two points in code that I showed with arrows? 那么,当我用箭头显示的代码中的这两点命中return之后,如何在其中放置标签?

  1. After the || 在||之后 operator 操作者
  2. After the opening { 开幕后{

工具->选项->文本编辑器-> C#->选项卡->缩进->设置为“智能”。

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

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