You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to format code for xml and c#. json and javascript do not have any issues.
What I have done
Originally I modified my editor.tabSize to be 2 (in workspace). I removed this override and just left in the defaults. I also overwrote the keybinding for editor.action.format to use ctrl+k ctrl+d. I also removed those and left just the default in. Working with test files of each type mentioned above I am able to format some file types, but not others. This does not seem to be dependent on any of my settings, I have just added that information in just in case it is relevant.
C# example - what I expect
The following screenshot the brackets should line up in MyClass.
In this case while the tab size is set to 2 I would also expect that MyClass would be moved left to adjust to the correct tab size.
Officially the starting bracket would be on the same line as the class definition for my company policy, but I do not see that option available. Bonus points if you can mention how to set this in VSCode. VS Enterprise was able to do this with just a checkbox in settings, I am ok with a bool in json, I just do not see the value anywhere.
XML example - what I expect
Here I expect that subLevel3 would be tabbed in to whatever the current tab setting is.
Tech Specs
Windows 10 Pro
The text was updated successfully, but these errors were encountered:
Summary
I am unable to format code for
xml
andc#
.json
andjavascript
do not have any issues.What I have done
Originally I modified my
editor.tabSize
to be 2 (in workspace). I removed this override and just left in the defaults. I also overwrote the keybinding foreditor.action.format
to usectrl+k ctrl+d
. I also removed those and left just the default in. Working with test files of each type mentioned above I am able to format some file types, but not others. This does not seem to be dependent on any of my settings, I have just added that information in just in case it is relevant.C# example - what I expect
The following screenshot the brackets should line up in MyClass.
In this case while the tab size is set to 2 I would also expect that
MyClass
would be moved left to adjust to the correct tab size.Officially the starting bracket would be on the same line as the class definition for my company policy, but I do not see that option available. Bonus points if you can mention how to set this in
VSCode
.VS Enterprise
was able to do this with just a checkbox in settings, I am ok with a bool in json, I just do not see the value anywhere.XML example - what I expect
Here I expect that
subLevel3
would be tabbed in to whatever the current tab setting is.Tech Specs
Windows 10 Pro
The text was updated successfully, but these errors were encountered: