Home > Back-end >  Can we use addEventListener in vscode extension?
Can we use addEventListener in vscode extension?

Time:11-11

I have been trying to use addEventListener in my own vscode extension. Basically, I want to catch if the user press certain key, say esc, then do something. Can anyone show me a basic working example in extension? Thank you very much!

CodePudding user response:

That's not possible, no. You cannot access the DOM in vscode directly.

  • Related