An open API service indexing awesome lists of open source software.

https://github.com/gamestrap/premake-vscodegen

C++ VSCode generator for Premake
https://github.com/gamestrap/premake-vscodegen

cpp premake vscode

Last synced: about 1 year ago
JSON representation

C++ VSCode generator for Premake

Awesome Lists containing this project

README

          

# Premake-VSCodeGen

[Visual Studio Code](https://code.visualstudio.com/) workspace generator for [Premake](https://github.com/premake/premake-core).

Supports GCC, Clang and MSVC through Make, Ninja or Visual Studio Solution file.

Note: For ninja you also need [premake-ninja](https://github.com/GamesTrap/premake-ninja).

## Usage

1. Put these files in a `vscode` subdirectory in one of [Premake's search paths](https://premake.github.io/docs/Locating-Scripts/).
2. Add the line `require "vscode"` preferably to your [premake-system.lua](https://premake.github.io/docs/System-Scripts/), or to your premake5.lua script.
3. Generate project files and then VSCode workspace

```
premake5 gmake2/vs2022
premake5 vscode
premake5 vscode --[make, ninja, vs]
```

Note: On Windows make sure that `msbuild.exe` is accessible from CMD. For Ninja please use the [Visual Studio Developer Command Prompt](https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell).

## Limitations

Currently this generater only supports a single [Premake Workspace](https://premake.github.io/docs/workspace/).
This generator only supports C/C++, all other project types are ignored.

## What files get generated

This generator generates the following files:

- \.code-workspace (only if not already exists)
- .vscode/c_cpp_properties.json
- .vscode/launch.json
- .vscode/tasks.json