Skip to content

Al-kides/Visual-Studio-Project-Generator

Repository files navigation

Visual Studio Project Generator

A tool for generating Visual Studio C++ projects with both GUI and CLI interfaces.

image

Features

  • GUI interface built with CustomTkinter
  • Support for multiple Visual Studio versions (2017, 2019, 2022)
  • x86 and x64 architecture support (GUI)
  • Automatic project structure generation
  • Configurable file extensions (.cpp, .cxx)
  • Dark mode interface

Installation

Automatic Installation

Windows: Run install.bat

Linux/Mac: Run ./install.sh

Cross-platform: Run python setup.py

Manual Installation

pip install -r requirements.txt

GUI Version

  1. Run the GUI version:
python GUIprojBuilder.py
  1. Fill in the project details:

    • Project Name
    • Visual Studio Version
    • Architecture (x86/x64)
    • File Extension
    • Save Location
  2. Click "Generate Project"

CLI Version

python CLIprojBuilder.py

The CLI version uses template.txt for configuration:

  1. Edit template.txt with your project settings (4 lines exactly):
    • Line 1: Project name
    • Line 2: VS version (2017/2019/2022)
    • Line 3: Architecture (x86/x64)
    • Line 4: File extension (.cpp/.cxx)
  2. Run the script

Android Users

The CLI version works on Android without console input. Choose one of these options:

Option 1: Termux (Terminal-based)

  1. Install Termux from F-Droid or Google Play
  2. Update packages: pkg update && pkg upgrade
  3. Install Python: pkg install python
  4. Install git: pkg install git
  5. Clone/download this project
  6. Edit template.txt with any text editor app
  7. Run: python CLIprojBuilder.py

Option 2: Pydroid 3 (GUI-based)

  1. Install Pydroid 3 from Google Play
  2. Download/extract this project to your device
  3. Open Pydroid 3 and navigate to the project folder
  4. Edit template.txt using Pydroid's built-in editor or any text editor
  5. Open CLIprojBuilder.py in Pydroid 3
  6. Tap the play button to run the script

Note: Generated projects are for Windows Visual Studio, but you can create the project structure on Android and transfer files later.

Generated Project Structure

ProjectName/
├── ProjectName/
│   ├── main.cpp
│   ├── ProjectName.vcxproj
│   ├── ProjectName.vcxproj.filters
│   └── ProjectName.vcxproj.user
├── x64/
│   └── Debug/
└── ProjectName.sln

Project Configuration

The generator supports:

Visual Studio Versions:

  • Visual Studio 2017
  • Visual Studio 2019
  • Visual Studio 2022

Architectures:

  • x86 (32-bit)
  • x64 (64-bit)

File Extensions:

  • .cpp
  • .cxx

Generated Code Features

  • Pre-configured project settings
  • Standard C++ includes
  • Random motivational messages
  • Helpful C++ programming tips
  • Modern C++ practices
  • Ready-to-build configuration

Contributing

Standard steps. Don't worry about it.

License

MIT License

Acknowledgments

  • CustomTkinter for the modern GUI elements
  • Visual Studio for the project templates

Contact

For questions, suggestions, or issues:

  1. Open an issue in this repository
  2. Submit a pull request
  3. Start a discussion in the Discussions tab

Made by [Euclidae] p.s README.md is generated by AI because I am a lazy [REDACTED]. Updating it was a pain in it of itself.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published