cake-build / cake-vs

Cake Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio
MIT License
67 stars 25 forks source link

Respect C# Editor Preferences #39

Closed mgasparel closed 7 years ago

mgasparel commented 7 years ago

When in a .cake file, hitting tab does not insert spaces, even though this is how my C# text editor is configured. I can't seem to find any way to configure the cake extension independently.

image

agc93 commented 7 years ago

Cake scripts (when using this extension) actually register with Visual Studio as generic code files (not C#)1, so it will use the generic editor settings by default. Have you tried setting the option in Text Editor -> Plain Text -> Tabs and see if that works the way you expect?


1: Registering a file type (such as Cake scripts) as C# in Visual Studio automatically triggers the C# compiler so your whole script will get marked as errors etc.

mgasparel commented 7 years ago

That's perfect. Thanks for the information!

agc93 commented 7 years ago

No problem. Let us know if you have any other issues!