javascriptemacssyntax-highlightingsyntax-errorjs2-mode

Hotkey to find syntax warnings in Emacs js2-mode?


I've got like 10,000 lines of JS and there's a missing bracket somewhere in there. js2-mode for emacs is supposed to highlight possible syntax errors, but it would still be incredibly time-consuming to look through all 10,000 lines and try to find the one little bracket that is highlighted. Can someone tell me if there is a hotkey that I can use to jump to the next syntax warning?


Solution

  • As I can see from js2 source code, there is js2-next-error function that should move to next error. It's bound to C-c C-` by default