So i upgraded to VS 2022. and anytime i add a semicolon. the whole code block gets backtabbed. does anyone know how to turn this off? getting tired of hitting ctrl z repeatedly..
Before.
After
CodePudding user response:
- Go to VS2022 Tools - Options Menu
- Type indent in search
- Look for Indentation under formatting option which appears under
Text Editor - C# - Code Style - Formatting Indentation
check / uncheck boxes to see how your code will look and save when happy
CodePudding user response:
After consolidating code blocks to one block on the razor page... this seems to have corrected the issue. the indenting I believe may have been caused by some bug where the indenting fails due to attempting to address other formatted code. this is not really a solid answer but i did find that moving things around prevented this from occuring and this was nothing to do with any indenting settings within the tools text editor options.
CodePudding user response:
There is another option under Tools - Options
Text Editor - All Languages - Tabs.
Try to specify Tab size and indent size


