Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Alt+O (toggle .h/.cpp) to create non-existing file

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
peterchen Posted - Nov 04 2021 : 10:28:09 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
peterchen Posted - Nov 08 2021 : 03:03:28 AM
Thank you! That seems suffient.
feline Posted - Nov 05 2021 : 07:35:39 AM
You are probably looking for the command Create File:

https://docs.wholetomato.com/default.asp?W288

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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000