gpt4 book ai didi

c# - 光标停留在我在 VS 文本编辑器中单击的位置

转载 作者:可可西里 更新时间:2023-11-01 08:33:39 25 4
gpt4 key购买 nike

很抱歉提出问题,但我无法在互联网上的任何地方找到答案。我自己也找不到答案。这是问题:

以前,当我在 VS 文本编辑器中单击任意位置时,光标移动到语句末尾,就在“;”之后。但现在它停留在我点击屏幕的位置,这真的很烦人。我该如何解决这个问题。提前致谢。

最佳答案

这称为虚拟空间,可以在 Visual Studio 的选项对话框中更改。

根据 MSDN文章:

To position comments beside your code

  • In the Options dialog box, expand Text Editor, and then click the General node for your development language.

  • Under Settings, select Enable virtual space.

When this option is selected and Word wrap is cleared, you can click anywhere beyond the end of a line in the Code Editor and type.

要恢复到您想要的行为,您需要在语言级别或为所有语言取消选中启用虚拟空间:

Visual Studio options dialog showing unchecked virtual space setting

还有更多here .

关于c# - 光标停留在我在 VS 文本编辑器中单击的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11274224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com