Skip to content

Add option to turn off On Type formatting #4336

Closed
@davidwengier

Description

Some users want to be in full control of their formatting, and currently achieve this by simply never using the Format Document command. Unfortunately for them, on type formatting still gets in the way.

In the below screenshot the user wants HTML to be at the same level of indentation of any C# block it is in, and manually adjusts as such, but every time they type a close brace on type formatting "fixes" the braces, which ends up breaking formatting for them.

From a video recording: https://msit.microsoftstream.com/video/30b40840-98dc-869c-0048-f1ebd05eceaa?st=65 (should start at 1:05)

image

The position of the braces in the screenshot is actually correct based on the document as a whole, but the indentation of the <div class="form-group col mb-0"> is one too few, so in context they are incorrect. In the video you can see the braces get indented along with the </ul>.

Note that the user is happy with smart indenting, and wants that to remain active.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions