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
 Alt+O (toggle .h/.cpp) to create non-existing file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomato Guru

124 Posts

Posted - Nov 04 2021 :  10:28:09 AM  Show Profile  Reply with Quote
Is there a way to create the corresponding file on Alt+O wenn it doesn't exist?

Example Workflow: I use "Move Selection to New File" to create some header, and now I want to add imlementations to the corresponding .cpp.

However Alt+O doesn't do anything, "Create Definition" creates it in the header file (which is good for the use case of header-only code)

- Am I missing something obvious/easy?

Maybe I am missing something here, but adding the file in the correct folder with Visual Studio is a bit lengthy (select correct file type, locate the right folder, re-type the file name)

- If not, feature suggestion:

Alt+O, when no file is found, could ask for the file to be created (including asking for the file name, so I can adjust the extension).

I believe this was discussed a long time before, but rejected at that time IIRC because 'we avoid creating files' - which has changed since.

VA_X.dll file version 10.9.2420.0 built 2021.07.28
DevEnv.exe version 15.9.28307.1705 Professional
msenv.dll version 15.0.28307.1684
Comctl32.dll version 6.10.19041.1110
Windows 10 10.0 2009 Build 19043.1288

Whole Tomato Software

United Kingdom
18419 Posts

Posted - Nov 05 2021 :  07:35:39 AM  Show Profile  Reply with Quote
You are probably looking for the command Create File:


which will create the matching file, and if you are creating a new header file, it will include it into the current, matching cpp file.

zen is the art of being at one with the two'ness
Go to Top of Page

Tomato Guru

124 Posts

Posted - Nov 08 2021 :  03:03:28 AM  Show Profile  Reply with Quote
Thank you! That seems suffient.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000