Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Unreal Engine - Add New File
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

New Member

9 Posts

Posted - Dec 18 2020 :  03:41:11 AM  Show Profile  Reply with Quote
One of the things that seem to take way too many steps when working with UE4 is adding new files.
Right now the easiest way seem to be to use file explorer, go to the folder where you want the new file and copy paste then rename an existing one.
Then add it to the project in visual studio. (It is also added to perforce automatically)

It would be really neat if VA could add an option when you right click a folder to create .h/.cpp file in that folder and add it to source control.
If there was also a choice between adding just the bare minimum code for either actor / actorcomponent / uobject. That would be extra nice :)

Maybe there is alredy a better way to do it, but if not, this would be a really nice addition for UE developers.


Whole Tomato Software

United Kingdom
17095 Posts

Posted - Dec 18 2020 :  05:35:31 AM  Show Profile  Reply with Quote
VA does have a Create File command, and you can use VA Snippets to specify the default initial file content for both header and cpp files:


Since the command is triggered from within the IDE, we take the directory of the current file to be the target directory in which to create the new file.

Since the files are automatically added to the project, IDE source control integration should take care of adding the files to Perforce.

You can then use other VA Snippets to add extra, more custom, standard blocks of code to the new files, depending on what you are doing with the files.


zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000