tsoding / faq

FAQ
132 stars 6 forks source link

How do you go automatically to problem line from compiler error? #33

Open buttke opened 9 months ago

buttke commented 9 months ago

I.E. https://www.youtube.com/watch?v=4vSyqK3SK-0&t=1020

You select line in compiler output and go directly to that line in the correct file. How works??!

tonitch commented 9 months ago

I don't know about emacs but in vim it's pretty much default (and you can add support for esotheric compiler pretty easily) (check :h compiler)

c4llv07e commented 4 months ago

Emacs has a built-in compile-mode that has global keybinds M-g M-n and M-g M-p to jump to the next and previous error, respectively. This way, when you have compiled your code using M-x compile, you can jump to any bugs in the project.

Or you can just click or press enter on it, it will work too.