Author Topic: C++ Create Function Body?  (Read 804 times)

PlasticJesus

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
C++ Create Function Body?
« on: May 08, 2019, 11:35:27 pm »
Hi. I'm trying to generate an empty C++ body from the definition in the header file.
I haven't used SE in a few years (I used to have a sweet version of this) and was hoping this would be standard, but I don't see it. Does anyone have a nice version of this capability?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2713
  • Hero Points: 413
Re: C++ Create Function Body?
« Reply #1 on: May 09, 2019, 09:24:38 pm »
There is a command for doing this (implement-protos <class_name>).  It is not super-refined, but it works adequately nevertheless.  Run it from the SlickEdit command line and give the it the name of the class you are implementing.

There is also a command that does the inverse, generates prototypes for the functions found in the current file.  Again not super-refined, you might need to cut and paste and massage the results a bit, but it is easier than typing it all by hand.