我在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