Hey guys,
Is there a reason why the F# addin does not have its own configuration for "Convert Tabs to Spaces"?
I would rather not have to set this globally, and luckily, MonoDevelop allows this to be set on a per-file type basis.
What you need to do is register a formatting setting for F# files.
To do this, you need to register a PolicySet for the F# mime type, you can see how the C# one does this for various styles here:
monodevelop/main/src/addins/CSharpBinding/CSharpBinding.addin.xml
And it looks like this:
<Extension path = "/MonoDevelop/ProjectModel/PolicySets/VisualStudio" >
<Policies resource="FSharpVisualStudio.xml" />
</Extension>
And then ship a FSharpVisualStudio.xml one, you probably want to copy the style we have in:
monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml
Miguel.