更改Visual Studio 2022中的默认压痕
如何更改Visual Studio中的默认压痕?
我希望它始终使用标签而不是空格。
我在任何地方看,要么都不告诉我如何将标签默认为几年。
编辑:
有点尴尬,我已经解决了问题。右下角的小窗口小部件仍然说它正在使用空间,即使它正在使用标签。我对这些设置的发现感到非常沮丧,因此我没有测试它们是否有效(尽管我有点奇怪,右下角的小部件不会更新)。
How do I change the default indentation in Visual Studio?
I want it to always use tabs instead of spaces.
Everywhere I've looked it either doesn't tell me how to make tabs the default or is several years out of date.
EDIT:
Bit embarrassing, I already had the issue solved. The little widget in the bottom right still said it was using spaces, even though it was using tabs. I was pretty frustrated by the point I found those settings so I didn't test if they worked (although it is a bit strange to me that the widget in the bottom right wouldn't update).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
环境:vs 2022社区C#
选项 - > c#> tabs-> keep tabs:
Environment:VS 2022 Community C#
Options->c#->Tabs->Keep tabs:
在Microsoft Visual Studio Enterprise 2022中,您可以这样做。
从“ 工具”菜单中选择“ 选项... ”。
选项...”>
搜索 tabs “ 搜索框”,然后选择“ 保持选项卡”在“ tab” - pection 中。

In Microsoft Visual Studio Enterprise 2022 you can do like this.
Choose "Options..." from the "Tools" menu.

Search for "Tabs" in the Search box and choose "Keep tabs" in the "Tab"-section.
