c00000fd
c00000fd

Reputation: 22255

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. I'm trying to set up the indenting for C# code. The easiest way is to show with a screenshot:

enter image description here

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?

  1. After the || operator
  2. After the opening {

Upvotes: 0

Views: 310

Answers (1)

Richardissimo
Richardissimo

Reputation: 5765

Tools -> Options -> Text Editor -> C# -> Tabs -> Indenting -> Set to "Smart".

Upvotes: 1

Related Questions