Launching
The bazel-stack-vscode
extension recognizes the file launch.bazelrc
in the root of the workspace as a special file wherein each line in the file is interpreted as a single command.
Completion for bazel flags is available as you type:
Use the
' '
(space) or'='
(equals) to commit choice and continue typing
Flag help is available as a hover:
The launch.bazelrc
file also acts as a codelens that allows you to build
, test
, run
, ….:
Repeat the last command with
shift+ctrl+space
.
Finally, the launch.bazelrc
file also pre-populates the Recent Commands view.