ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

C++ Classhelper

by Fabian Schilf ALL Trending

Create C++ class with Headerfile

Details

Installs

  • Total 4K
  • Win 3K
  • Mac 448
  • Linux 1K
Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15
Windows 6 6 9 4 3 3 5 6 4 9 5 3 9 8 8 11 4 5 5 11 3 6 6 3 4 11 10 5 2 12 3 4 5 4 4 4 10 3 6 5 6 3 3 5 5 10
Mac 0 1 2 0 0 1 1 0 0 0 0 1 0 0 1 1 0 0 0 0 2 0 0 1 2 0 1 0 3 0 2 0 1 0 0 1 1 2 3 1 1 1 1 1 0 1
Linux 2 4 3 2 2 2 3 5 0 5 3 1 2 2 3 1 1 2 3 1 1 2 2 1 2 0 1 3 2 0 1 1 0 3 0 6 1 1 2 3 0 4 2 3 1 0

Readme

Source
raw.​githubusercontent.​com

C++ Class Helper Sublime Text Plugin

Sublime Text Plugin for creating/generating C++ Classes and since version 1.2.0 generate definitions for your C++ class methods.

Installation

Package Control

Install package via package control. Type CTRL+SHIFT+P on Windows or CMD+SHIFT+P on macOS and select Package Control: Install Package and search for C++ Classhelper

Manual

Download or clone this repository.

$ git clone https://github.com/pr0grammr/cppclasshelper-sublime-text-plugin.git

Rename the downloaded folder to C++ Classhelper. Copy the folder in the sublime text package directory. You'll find it by clicking Preferences -> Browse Packages.

Usage

Class generation

Right-click on the folder in your sidebar, where you want to create your class and click Create C++ Class. Enter your classname without file extension in the input panel. After you entered the name, hit return. The sourcefile and headerfile for your class will now be created in the folder you clicked in the sidebar.

Class method generation

Since version 1.2.0 you are able to generate definitions for your class methods.

Press CTRL + SHIFT + P to open command palette. Type in C++ Classhelper - Generate Method Definition (or right click in your current window to select the option via context menu) and select the method you want to generate the definition.

Settings

{
    // opens the class after creation
    "open_after_creation": true,

    // file extension in which the headerfile is created (e.g.: hpp or h)
    "header_file_extension": "hpp",

    // if set to false, alternative header style will be used
    "use_pragma_once": true 

    // inserts a newline after every template
    "newline_after_template": true,

    // inserts newline after method definitions
    // curly brackets will be placed to the next line
    "newline_after_method": true,

    // places the cursor inside the brackets, so you can directly start typing
    "place_cursor_between_brackets": true
}

License

This plugin is published under MIT License