I am currently developing an application in WPF (.NET Core) and I'm encountering an indentation problem.
Here is the App.xaml.cs when I manually format it :
When I go back to the line, my cursor goes here :
If I format the document (Ctrl+K, Ctrl+D) :
I don't have this problem in UWP, and I don't know what to do to solve this problem. Here is an example of my cursor when I go back to the line in UWP :
Options -> Text Editor -> C# -> Tabs :
Thanks to those who will try to help me and sorry if my English isn't perfect.
There is the chance of changing the indentation settings (among others) on a per-project basis by providing a .editorconfig
file, that will override some settings in Visual Studio project. If you're having different behaviors on the same language but different projects, look for such a file and change the setting there.