Makefile Visual Studio Code



  1. Make: A VS Code extension for working with make. Many programming languages, such as C and Go, still rely upon Makefiles to handle builds. This extension provides features to ease working with Make in VS Code. Run any Makefile target with ease. Just run CMD-SHIFT-P and type make. You will be prompted for a target.
  2. Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform.
  3. Empower the Makefile capabilities built into Visual Studio Code — Run any command from the sidebar, run and watch tests by right clicking either on a file or folder Installation Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press enter.

Makefile Visual Studio Code

Studio

VS Code Makefile Tools. This extension provides IntelliSense configurations to the VS Code C/C Extension for Makefile projects. It also provides convenient commands to build, debug,.

Makefile In Visual Studio Code

Makefile Command Runner empowers the Makefile capabilities built into Visual Studio Code — Run any command from the sidebar, run and watch tests by right clicking either on a file or folder.

Settings Options

This extension contributes the following variables to the settings:

  • makefilePath: use this setting to set the file path of your Makefile, for example bin/local
  • unitTestCommand: use this setting to set the unit test command, for exmample unit-test-all
  • integrationTestCommand: use this setting to set the integration test command, for exmample integration-test
  • unitTestWatchCommand: use this setting to set the unit test watch command, for exmample unit-test-all-watch
  • integrationTestWatchCommand: use this setting to set the integration test watch command, for exmample integration-test-all-watch
  • filePathEnv: use this setting to set the file path environment variable used to pass down to node scripts the file path, for example FILE_PATH

Features

Commands view

A view to visualize and explore Makefile commands

Explorer menu

Adds 'Run test' and 'Run and watch test' in the explorer menu

  • Use right click to open the menu

How to use

  1. Locate your makefile path and name. Example for a makefile located in bin/make and named Makefile.main

  2. Open settings and update Makefile path and Makefile name

  3. Check the remaining settings and make sure you update them correctly according to your project