Luke's Cpp HelperAdds functionality to be help write c++ code. FeaturesDescribe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
All context menu items can be removed in the settings, by default they are all present. Include/external folders can added in the config settings, to make includes correct. Move All Function ImplementationsCreates a new file if it does not already exist Move Individual Function Implementation merges with existing namespacesMove To Header FileMoves selection to a new header file
Create Basic ConstructorWorks best when all symbols can be found, else uses best guess when not, for example std::string is unknown in this example Create Default ConstructorsCreates the basic default constructors and assignment operator Create DestructorsCreates the default destructors Add All missing IcludesAdds all the missing includes. Works by looking at every word and seeing if its declaration is missing from the includes. It contains hardcoded mappings of the standard library so similar named symbols might get resolve to the std lib instead of user defined. Add Include for Specific SymbolAdds specific include that is currently selected. It contains hardcoded mappings of the standard library so similar named symbols might get resolve to the std lib instead of user defined. Available as command or in context menu or as a quick fix. Forward Declare of struct/classForward declaring is useful on large projects as it can reduce build time significantly. As if person.h includes dog.h, we can image lots of other files like world.h including person.h implicitly including dog.h even if it does not use dog. Thus if any change is made to dog.h a lot of build system will then rebuild person.h and world.h, but by forward declaring we can remove these dependencies. When a type is only mention as a pointer/reference and without any dereferencing, it can be forward declared. The steps are:
Add Missing FunctionsClick on the specific interface that a class extends, a quick fix will appear to add the missing virtual functions Switch Header/SourceSwitches between header file and source, but does it by only looking for a file in the same directory and same name. Will be faster than the C++ extension implementation since it does not scan the project. Known Issues
Release Notes1.1.0Initial release of cpp helper
1.1.0Major bug fixes and additional documentation 1.2.0Added move to header file command 1.2.1Fixed create constructor command not working with structs 1.3.0Fixed create constructor command not working with comments Added add includes automatically 1.4.0Add specific include for clicked on symbol Add quick fix suggestion to include symbol 1.4.1Add include quick fix to show multiple options for include 1.5.0Added forward declare, does not handle name spacing Fixed relative includes using ../ notation 1.5.1Fixed relative includes not removing same root paths 1.5.2Fixed bad import 1.5.3Added move to cpp to quick fix Fixed a back slash forward slash problem when generating include 1.5.4Added creating destructor Added create con/destructor to quick fix Added move to header to quick fix Added include all to quick fix Can now undo file creation for move to 1.6.0Added quick fix to add all virtual functions 1.6.1Adds virtual functions recursively Does not add already existing functions 1.6.2Fixed include generated by Move to Impl from backslashes Fixed Create Constructor bug when class is templated 1.6.3Fixed move all impl when generating a new file Added file extension setting to chang cpp file extensions for different projects 1.7.0Added switch between header and source command 1.8.0Added Getter and Setter generation Removed virtual keyword and added override keyword when adding virtual functions from inherited class |