Competitive-Programming
Competitive-Programming copied to clipboard
Update - Showing Errors on Build in same line.
I would like to make an update that Sublime Text 3 supports showing build errors in the same line. As show below.
It's actually very useful during Contest when we tend to have some simple errors, it helps to debug quickly.
Thus to enable this feature, make sure show_errors_inline
setting is turned on (by default it's on), else it can be set by navigating to preferences -> settings
"show_errors_inline": true,
Next this is file_regex property should be set in build file.
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
Example for Linux c++ build file.
{
"cmd" : ["g++ -std=c++14 $file_name -o $file_base_name && timeout 4s ./$file_base_name<inputf.in>outputf.in"],
"selector" : "source.c",
"shell": true,
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir" : "$file_path"
}
In case it helps do make sure to update !