取消VScode在换行时自动去最左侧
时间: 2024-03-28 10:08:42 浏览: 69
你可以通过更改 VS Code 的设置来取消在换行时自动将光标移动到最左侧。请按下快捷键 "Ctrl + ," 或者在菜单栏中选择 "文件" -> "首选项" -> "设置"。
在设置面板中,搜索框中输入 "autoIndent",然后找到 "Editor: Auto Indent" 选项。将其取消勾选,这样在换行时光标就不会自动移动到最左侧了。
如果你想要更详细的配置,你还可以搜索并调整其他与换行相关的设置,例如 "Editor: Trim Auto Whitespace"(取消勾选可以避免自动删除末尾空格)或者 "Editor: Render Control Characters"(启用后可以显示控制字符)等。
记得保存设置后重新启动 VS Code,使更改生效。希望这能帮到你!如有其他问题,请继续提问。
相关问题
取消VScode在换行时自动去最左边
你可以通过调整 VS Code 的换行设置来取消自动将光标移至行首的行为。请按下快捷键 Ctrl + ,打开用户设置。然后在搜索框中输入"wrap",找到"Editor: Cursor Move On Type"选项并将其设置为"wrap"。这样,在换行时光标就会停留在当前行的末尾,而不会自动移至行首。
阅读全文
相关推荐
















