Sublime Forum

How to make sublime text highlight errors

#1

I see that it can jump to the errors after a build (F4), but how do I make it highlight the line as well?

1 Like

#2

Usually, F4 also selects the relevant part in the output panel which shows where the error “took place”. By selecting I mean that it shows in the same color as a selection in the edit view.

0 Likes

#3

Doesn’t seem to happen to mine. See here. Does there need to be something specific in the theme for it to appear?

0 Likes

#4

So, you want the error to highlight the whole line in the edit view where the error occures? Not possible to my knowledge because the error search results may contain a line and a column number. Thus, it would place the cursor in the desired line and column. However, I guess it makes sense to select the whole line when no column is specified. This would be a feature request, then.

0 Likes

#5

See this feature request: http://sublimetext.userecho.com/topic/102678-highlight-lines-reported-by-build-system/

But at 10 votes it is very unlikely to get implemented.

0 Likes

#6

Not that this is exactly what you’re asking for, but you might want to enable line highlighting to get close to where you want. Add the following to user or filetype prefs:

"highlight_line": false,

You could make a keyboard shortcut to toggle this via a very simple plugin.

0 Likes