llkainspired.blogg.se

Visual studio reformat code
Visual studio reformat code






Sadly not all settings are available here, so in the other cases you'll still need to fall back to the specific IDE settings that will follow later.įrom Tools | Options | Text Editor | All Languages | Tabs, here choose "Insert spaces" or "Keep tabs"įrom this same dialog, you can also configure "Tab size" and Indent size" The EditorConfig settings override the local developer settings, so I strongly suggest using this approach to have a consistent and reproducible working environment across all developers of a team.

visual studio reformat code

In the last times, I see more and more spaces used instead, as they offer a more consistent view across different IDE configurations.Įven if personally I still prefer tabs (and luckily I am not alone), in this guide I will explain how to configure them in the most popular IDEs. Generally, in the past tabs were preferred, because they optimized source code file sizes they also allowed to switch between 2 and 4 spaces easily. If for you it is important to correctly format your code, you know very well about the whitespaces versus tabs dilemma.








Visual studio reformat code