vscode-markdown icon indicating copy to clipboard operation
vscode-markdown copied to clipboard

编辑 Markdown 时,按下删除键或回车键需要很久才能响应

Open heartacker opened this issue 4 years ago • 11 comments

Problem

编辑 Markdown 时,按下删除键 (Backspace) 或回车键 (Enter) 需要很久才能响应。

How to reproduce

在升级 VS Code 到 1.57.1 之前,只有首次打开 Markdown 的时候才会觉得卡顿。但现在每次击键都会卡。

Troubleshooting guide

https://markdown-all-in-one.github.io/docs/guide/compatibility.html

https://markdown-all-in-one.github.io/docs/contributing/performance-issue.html

heartacker avatar Jun 22 '21 02:06 heartacker

在我的电脑上并没有问题。建议检查一下:

  • 禁用所有其它插件试试(可能是有其它插件相互影响)
  • 最根本的方法是使用 VS Code 推荐的步骤来记录哪里耗时比较多

详细的步骤可以参考 https://github.com/yzhang-gh/vscode-markdown#q-the-extension-is-unresponsive-causing-lag-etc-performance-issues

yzhang-gh avatar Jun 22 '21 03:06 yzhang-gh

你好,我也遇到了同样的问题。 目前md文件行数 3700, 输入后删除有明显的卡顿,关闭 Markdown All in One 插件后没有问题

插件版本:v3.4.0

vscode 版本: 1.57.1 提交: 507ce72a4466fbb27b715c3722558bb15afa9f48 日期: 2021-06-17T13:28:32.912Z Electron: 12.0.7 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Darwin x64 20.5.0

ghost avatar Jul 01 '21 03:07 ghost

请提供更多的信息供我们测试,比如样例文档

或者参考上面的链接指引

yzhang-gh avatar Jul 01 '21 13:07 yzhang-gh

我也遇到同样的问题,通过 https://github.com/yzhang-gh/vscode-markdown#q-the-extension-is-unresponsive-causing-lag-etc-performance-issues 提供的方法,我发现是 Todo Tree 这个插件导致的卡顿,在该工作区禁用之后就没有卡顿了。

doge-liang avatar Jul 05 '21 20:07 doge-liang

@yzhang-gh 我这边出现频率还挺高的,空闲了我自己看看啥问题 (* ̄︶ ̄)

ghost avatar Jul 07 '21 11:07 ghost

我也遇到同样的问题,通过 https://github.com/yzhang-gh/vscode-markdown#q-the-extension-is-unresponsive-causing-lag-etc-performance-issues 提供的方法,我发现是 Todo Tree 这个插件导致的卡顿,在该工作区禁用之后就没有卡顿了。

我也遇到 enter/backspace 键卡顿的问题,通过同样的方法分析,发现是 httpyac 插件导致的问题,禁用掉它就正常了。

ryan4yin avatar Nov 07 '22 03:11 ryan4yin

遇到同样问题,不是其他插件导致,而是Markdown all in one 本身把Enter键绑定里 一个快捷键,将这个快捷键删了就回复正常了。不知道是否有必要将Enter键绑定快捷键。

Dunky-Z avatar Oct 20 '23 01:10 Dunky-Z

如果不需要自动补全列表的功能可以将其删掉

onEnterKey

(As a last resort, you may choose to delete onXXXKey keys through VS Code's Keyboard Shortcuts editor if you do not need the list editing feature at all.)

FAQ

yzhang-gh avatar Oct 21 '23 15:10 yzhang-gh

感觉原因都不是很一样啊,直接吧这个markdown.extension.on***快捷键删掉就好了捏

hnyls2002 avatar Jan 08 '24 15:01 hnyls2002

把删除键或回车键的键绑定删了就好

nvnejibei avatar Apr 12 '24 03:04 nvnejibei

我之前也有这个问题,然后我试着删了几个插件,发现Hungry Delete也会导致删除响应长的问题

hnrobert avatar Jun 11 '24 07:06 hnrobert