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
- Host: GitHub
- URL: https://github.com/gamestrap/premake-vscodegen
- Owner: GamesTrap
- License: mit
- Created: 2022-12-28T23:44:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T22:08:34.000Z (over 2 years ago)
- Last Synced: 2025-01-28T23:09:11.662Z (about 1 year ago)
- Topics: cpp, premake, vscode
- Language: Lua
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
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