Multi-file template formatting issue

I have created a multi-file template that produces a set of C# files. But the indentation in the resulting files does not match the indentation I used in the template. I can fix it by running reformat, but why do I have to?

JetBrains ReSharper 2023.3.2 - Build 233.0.20231218.91950 built on 2023-12-18
Visual Studio Professional 2022 - Version 17.8.1

0
3 comments

Hello Tony Peguero, thank you for your question. Could you please give me a specific example? You can either attach screenshots of what it looks like here and additionally upload the settings to JB server. Or you can create a support request using the "Submit a request" button at the top right and attach this information to it. Thanks in advance!

0

This is the template.

After creating something from this template, the final file looks like this:

Something similar happens with the second file:

 

0

Hello Tony Peguero , thanks for the reply. This behavior depends on the formatting settings. Please check the indentation settings in Visual Studio options, in ReSharper options and in configuration files (.editorconfig, for example), if you use them. You can also upload the following information to JB server and let us know the Upload ID:

- ReSharper Settings: `ReSharper | Manage Options => "Export to File"` in the context menu for each layer;

- Visual Studio settings - `Tools | Import and Export Settings`;

- configuration files if you use them.

Thank you!

0

Please sign in to leave a comment.