There is a global preference you can set (Preferences > Settings
from the menu) that controls whether the build results panel opens or not:
// Shows the Build Results panel when building. If set to false, the Build
// Results can be shown via the Tools/Build Results menu.
"show_panel_on_build": true,
This setting defaults to true
, so setting it to false
will stop the panel from opening automatically.
That said, the exec
command reads this setting directly from your user preferences, so it’s basically an all or nothing proposition; you can disable or enable it globally, but you can’t set an option in a particular build system, syntax specific setting or project specific setting that would turn it off for just that situation.
If that matters and you would like to sometimes have the panel open automatically and sometimes no, the build system you’re using would have to use a custom target
that doesn’t directly invoke the exec
command so that you can honor the setting coming from a different place.