我正在使用monaco-editor作为我的项目,我正在寻找断点功能 .
因此,this conversation没有内置的乐趣,这很可惜 .
在playground中存在某种类型的东西,但我没有通过点击装订线看到任何有类型的eventListener,所以我可以设置或删除我的断点 .
所以,也许我错过了什么 . 请告诉我,如果有人有这方面的经验,因为这是非常受欢迎的编辑器,所以应该有断点的解决方案 .
我正在使用monaco-editor作为我的项目,我正在寻找断点功能 .
因此,this conversation没有内置的乐趣,这很可惜 .
在playground中存在某种类型的东西,但我没有通过点击装订线看到任何有类型的eventListener,所以我可以设置或删除我的断点 .
所以,也许我错过了什么 . 请告诉我,如果有人有这方面的经验,因为这是非常受欢迎的编辑器,所以应该有断点的解决方案 .
1 回答
https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-listening-to-mouse-events在字形边距上显示
mouseDown
,mouseMove
事件 .在Visual Studio Code source中,您可以看到针对排水沟点击的
editor.onMouseDown
事件测试: