Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 保存时偏移代码和文本_Visual Studio Code_Vscode Settings - Fatal编程技术网

Visual studio code 保存时偏移代码和文本

Visual studio code 保存时偏移代码和文本,visual-studio-code,vscode-settings,Visual Studio Code,Vscode Settings,告诉我如何解决这个问题? 每次我保存一个文档时,代码行都会被移动到一整行。如何禁用此功能?多谢各位 <form action="" method="POST"> Username <input type="text"><br> Pasword <input type="password"><br> <input type="button">Button<br> </form>

告诉我如何解决这个问题? 每次我保存一个文档时,代码行都会被移动到一整行。如何禁用此功能?多谢各位

<form action="" method="POST">
    Username <input type="text"><br> Pasword <input type="password"><br>
    <input type="button">Button<br>


</form>


用户名
密码
按钮

在VSCode中

  • 打开用户设置
    File>Preferences>settings
  • 在搜索栏中输入
    save
  • editor.formatOnSave
    设置为
    false
  • 在保存时查找可能对代码有影响的任何其他设置,并将其禁用

  • 您的编辑器是什么?Visual studio代码您是否查看了相关程序的帮助文档,查看了常见问题解答,联系了他们的支持团队?他查看了查询,没有发现任何内容。决定问你,服务响应了很长时间。@JohnShevchenko你能在你的问题中添加你的VSCode用户设置吗?在我看来,这是调整过的。请看视频,准确理解我的问题。