vscode 格式化代码时,光标会跳到文件的最后

我在vscode中安装了Prettier - Code formatter格式化插件,在文件大小达到某个数值时,格式化代码时,光标会跳到文件的最后
更小的文件中则正常
以下是相同的问题
vscode format on save on big file cursor alway jump to the end of the file · Issue #2920 · prettier/prettier-vscode
Cursor moving to end of file VS code >=1.96.3 · Issue #3604 · prettier/prettier-vscode

解决方案

安装历史版本9.4.0,大文件格式化就正常了


image.png

image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容