Skip to content

GamesTrap/Premake-VSCodeGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Premake-VSCodeGen

Visual Studio Code workspace generator for Premake.

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

Note: For ninja you also need premake-ninja.

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
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.

Limitations

Currently this generater only supports a single Premake Workspace.
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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages