---
title: "Discussion on \"c# Visual Studio turn off auto formatting for code area\" | Hashnode"
description: "Discussion on \"c# Visual Studio turn off auto formatting for code area\". Sometimes you do not want to have auto formatting enabled for specific code areas. Mostly I am using that for short switch statements, for a better code readability.\nSpecific code areas can be excluded by using the formatter directive:\nswitch (arg.To..."
url: "https://hashnode.com/posts/c-visual-studio-turn-off-auto-formatting-for-code-area/62b991c7f2e6c7d70c1235a5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [c# Visual Studio turn off auto formatting for code area](https://blog.sigterm.eu/c-visual-studio-turn-off-auto-formatting-for-code-area?utm_source=hashnode&utm_medium=feed)

Sometimes you do not want to have auto formatting enabled for specific code areas. Mostly I am using that for short switch statements, for a better code readability. Specific code areas can be excluded by using the formatter directive: switch (arg.To...

Jun 27, 2022 · 1 min read · blog.sigterm.eu  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#visual-studio](https://hashnode.com/tag/visual-studio)
-   [#format](https://hashnode.com/tag/format)
-   [#formatting](https://hashnode.com/tag/formatting)
-   [#code-format](https://hashnode.com/tag/code-format)

## Written by

[Dominik Schischma](https://hashnode.com/@del)

@del · Germany

  
[View profile](https://hashnode.com/@del)

Coding, operating, teaching...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
