| Marketplace
Sign in
Visual Studio Code>Other>Build and runNew to Visual Studio Code? Get it now.

Build and run

olback

|
6,103 installs
| (2) | Free
Click a button to compile/build and/or run a project
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bar - VS Code

Downloads

Features

The goal with this extension is to make it easier to develop binary files. In the status bar you have the option to Build, Run and "Build and run" the project.

status bar buttons

Extension Commands

  • Bar: Init: Initialize the extension.
  • Bar: Reload: Alias for Bar: Init.
  • Bar: Build: Build your project.
  • Bar: Run: Run your project.
  • Bar: Build and run project: Build and run project.
  • Bar: Reset Reset the config file.
  • Bar: Edit config Open the config file.

Extension Keybindings

  • Build and run: shift+f6
  • Build: ctrl+shift+f6
  • Run: shift+f2

Configuration

Open the command pallete (Cmd or Ctrl+Shift+P) and run Bar: Init to initialize Bar and create the config file.

The commands for building/compiling and running your project are saved in projectRoot/.vscode/bar.conf.json.

{
    "commands": {
        "build": "your-build-command",
        "run": "./project-exe"
    },
    "messages": {
        "building": true,
        "buildSuccess": true,
        "buildError": true,            
        "buildErrorMessageBox": true, 
        "run": true
    }
}

The values in the "messages" object allow you to control the kinds of status messages that will be shown. When buildErrorMessageBox is true, a small informational error box will also appear in the bottom right corner when the build fails.

Bugs

Please report any bugs or issues on GitHub

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft