Visual Studio 2019 ignoring tab preference

自闭症网瘾萝莉.ら 提交于 2020-12-30 08:50:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!