- Home /
Monodevelop formatting [Header] weirdly
Hey guys,
I've just learnt about [Header] which is great for keeping the inspector tidy, but Monodevelop is doing something odd with the formatting. It will separate the first line following the Header line. For example:
[Header("GUI")]
public int
playerScore;
public GUIText scoreGUI;
private int fuelScoreValue = 10;
It does it for each and every Header block. I suspect it has something to do with auto-format on saving, but it seems weird that the lines following the first one don't indent/separate like the first and I can't find any option in the C# Solution Options that may relate.
I'm only learning to program so this may be a simple answer. Thanks in advance for your help.
I am also having the same problem! It has to do with the C# code formatting in $$anonymous$$onodevelop, we choose $$anonymous$$icosoft Visual Studio template and all of this started to happened all the sudden, but there is no formatting rule for this specific declaration when using attributes like [XYZ].
If anyone found a solution for this please share, thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613182114im_/https://answers.unity.com/themes/thub/images/avi.jpg)