Author Topic: Go to error in Build Editor Window  (Read 241 times)

rowbearto

  • Senior Community Member
  • Posts: 1343
  • Hero Points: 100
Go to error in Build Editor Window
« on: December 18, 2018, 01:18:49 pm »
I often have my build output going to an editor window as well as the smaller tool window at the bottom.

When I double-click an error in the small tool window, it rightly brings me to the file with the error at the line of the error. Most of the time, this is what I want to do.

But occasionally I want to view the build error line in the larger Build Editor window. So I would like to have a feature so that I can right click on any line in the smaller build tool window and choose a new menu item to bring me to that same line in the larger Build Editor window.

Graeme

  • Senior Community Member
  • Posts: 2279
  • Hero Points: 296
Re: Go to error in Build Editor Window
« Reply #1 on: December 19, 2018, 12:57:01 am »
This seems to work.  Load the macro below and in the build window, do right click -> edit this menu and add the command to the menu.  If you want to customise a menu that doesn't have an "edit this menu" option, you just need to find the name of the menu and edit it via macro -> menus.
 

Code: [Select]
_command void goto_editor_window_from_build() name_info(',')
{
   int pl = p_line;
   edit ("+b  Build (.process)");
   goto_line(pl);
}

rowbearto

  • Senior Community Member
  • Posts: 1343
  • Hero Points: 100
Re: Go to error in Build Editor Window
« Reply #2 on: December 19, 2018, 02:38:57 am »
Thanks Graeme! That works very nicely! +1!