GamesTrap / Premake-VSCodeGen

C++ VSCode generator for Premake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Premake-VSCodeGen

Visual Studio Code workspace generator for Premake.

Supports GCC (& Clang, untested) through Make and MSVC through MSBuild.

Usage

  1. Put these files in a vscode subdirectory in one of Premake's search paths.
  2. Add the line require "vscode" preferably to your premake-system.lua, or to your premake5.lua script.
  3. Generate project files and then VSCode workspace
premake5 gmake2/vs2022
premake5 vscode

Note: On Windows make sure that msbuild.exe is accessible from CMD.

Limitations

Currently this generater only supports a single Premake Workspace.
Currently the generated tasks will only use 3/4 of the available CPU threads (guaranteed minimum is 1 thread).
This generator only supports C/C++, all other project types are ignored.

What files get generated

This generator generates the following files:

  • <WorkspaceName>.code-workspace (only if not already exists)
  • .vscode/c_cpp_properties.json
  • .vscode/launch.json
  • .vscode/tasks.json

About

C++ VSCode generator for Premake

License:MIT License


Languages

Language:Lua 100.0%