VS Code 光标跳到底部 [英] VS Code cursor jumping to bottom

查看:52
本文介绍了VS Code 光标跳到底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么当我创建新标签时我的光标会跳到最后一行代码?例如,当我在 HTML 中输入注释时,只要输入 !,它就会跳到底部.我必须更改哪些设置才能防止这种情况发生?这很烦人.我刚刚开始使用 VS Code,如果这是一个非常简单的修复,我很抱歉.

Why does my cursor jump to the last line of code when I create new tags? For example, when I type a comment in HTML, as soon as I type the !, it jumps to the bottom. What setting do I have to change to prevent this from happening? It is very annoying. I am just starting to use VS Code so sorry if this is a really simple fix.

推荐答案

我第一次开始使用 vscode 时遇到了同样的问题.

I had the same issue when I first started using vscode.

说明

通常,该问题是由某种会干扰您的 IDE 的扩展引起的.就像扩展程序正在尝试完成其工作,但与其他扩展程序或 vscode 设置存在冲突,或者这就是它的工作方式.更具体地说,我发现问题是由 HTML、CSS、JS 格式化程序扩展引起的.

Generally, the issue is caused by an extension of some sort that is messing with your IDE. Like the extension is trying to do its job but either there is a conflict with other extensions or vscode settings or that's how it works. More specifically, I found the issue was caused by the the HTML, CSS, JS formatter extension.

解决方案

如果您有该扩展程序,请尝试禁用它并重新启动 vscode.如果问题得到解决,那么您可以将其禁用或卸载.如果没有解决,请使用其他扩展重复此过程,尤其是那些格式化代码的扩展,直到找到罪魁祸首并将其删除.

If you have that extension, try disabling it and restart vscode. if the issue is fixed then you may leave it disabled or uninstall it. If it is not solved repeat the process with other extensions, especially those that format your code, until you find the culprit and remove it.

这篇关于VS Code 光标跳到底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆