问题
I was programming in VS2019 this morning before going about my day. When I sat down in the evening to keep programming, I realized that it has suddenly been placing spaces instead of tabs! My preferences are set for every language to place tabs instead of spaces, and has been doing so in previous days. I updated VS to make sure, but the problem persists - regardless of my preference settings, out of nowhere spaces are being placed instead of tabs.
PS: I am aware that this question has already been asked here, but their solution was to update VS - which did not change anything for me.
回答1:
I found the solution! In the options, go to Text Editor > Advanced and turn off "Use adaptive formatting". It was overwriting my preferences based off of the already-existing formatting of a given file
来源:https://stackoverflow.com/questions/59816503/visual-studio-2019-ignoring-tab-preference