更改Visual Studio 2022中的默认压痕

发布于 2025-02-03 11:35:53 字数 201 浏览 4 评论 0原文

如何更改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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风为裳 2025-02-10 11:35:53

环境:vs 2022社区C#

选项 - > c#> tabs-> keep tabs:

”

Environment:VS 2022 Community C#

Options->c#->Tabs->Keep tabs:

enter image description here

enter image description here

半城柳色半声笛 2025-02-10 11:35:53

在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.
    Tools -> Options...

  • Search for "Tabs" in the Search box and choose "Keep tabs" in the "Tab"-section.
    enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文