Visual Studio 2019 and C++: Unwanted indenting on comments or enums

  • Thread starter Thread starter Jim Hewes
  • Start date Start date
J

Jim Hewes

Guest
I'm using VS version 16.5.2 and developing using C++.

When I type Enter in Visual Studio editor it indents in two situations when I don't want it to:

  • When typing a // comment and then hitting Enter for a new line
  • When adding enum items and hitting Enter for a new line

The only way I've found to stop this in the Options is to change the Tabs->Indent from Smart to Block. But unfortunately this also disables other options that I do want, such as formatting a section when I type "}" or ";". (Why that is related to smart tab indenting I don't know.)

Is there a way to ONLY stop these unwanted indentations without affect anything else?

If not, I'll do a feature request request.

Jim

Continue reading...
 
Back
Top