Coder Social home page Coder Social logo

belug23 / cpp-class-creator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tzacee/cpp-class-creator

0.0 1.0 0.0 542 KB

A simple vscode extension to create formatted cpp class.

Home Page: https://marketplace.visualstudio.com/items?itemName=FleeXo.cpp-class-creator

License: GNU General Public License v3.0

TypeScript 100.00%

cpp-class-creator's Introduction

A simple C++ Class Creator with multiple settings ๐Ÿ‘ฝ

Hey I'm Maxim. I wanted created a little c++ extension to create classes.

I can work on it when I have time in order to improve it. Just open some Issues or Pull Request. Im happy to work on them!

Features

Press Alt+X to open the Input Field to create a class, while you are focusing the editor!

Type in the name, and there you go. You will directly see, when the file is created.

Additionaly you can set the path where the file has to be created: check Settings at the bottom.

Demo

Known Issues

-Class can be created, while the language is not c++

Settings [settings.json of VS-Code]

"cpp.creator.headerProtection.useIfnDef": = boolean : [TRUE by default] will add the default *ifned, define, endif* structure to the header file of the created class.

"cpp.creator.headerProtection.usePragmaOnce": = boolean : [TRUE by default] will add *#pragma once* to the header file of the created class. Header Protection can be used in combination (ifndef and pragma once)

"cpp.creator.setPath": = "string" | null | boolean : [NULL by default] set your path where the class should be created as a string. When it's null your class will be created in the current workspace. Set it to true, when you want a input window to appear on every class creation where you can set creation path. On false or on an empty path input box it will also be created in the current workspace.

"cpp.creator.createFolder": = boolean : [FALSE by default] set it to true, so a folder for the class will be created in your workspace -> Only possible when setPath is null.

"cpp.creator.useHPPEnding": = boolean : [TRUE by default] set it to false, so the header ending will .h, if it's true, it will be .hpp.


Have fun.

Make Pull Request when you have feature ideas & if you want, support me by sponsoring my github account :)

Changelog

  • Added Header Protection settings
  • little refactorings
  • removed experimental settings

Enjoy!

                GNU GENERAL PUBLIC LICENSE
                   Version 3, 29 June 2007

cpp-class-creator's People

Contributors

tzacee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.