This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271945

Summary: Creating a linked pair of header and source files
Product: cnd Reporter: Sergeant82d
Component: EditorAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: ENHANCEMENT Exception Reporter:

Description Sergeant82d 2017-12-23 05:13:02 UTC
Using NB 8.2 w/ MinGW C compiler (latest) on HP laptop/I5 proc/8GB RAM/Win 10

See also BUG 211189
 
For any given source file I create, nine times out of ten I have a matching header file - same name, etc. Typically I write functions in the source file, then copy the definition info into the new header. Standard stuff.
 
I would like to propose an option on the "new file" creation window to create and link a matching pair of files - both source and header - at the same time. Probably just a check box on the "New C Source File" window. I would not put the option on the header file window. Optionally, it could be a new item in the right-click "New" drop down list as a separate option.

This would need to be dynamic so that every new function written in source is pulled into the header automagically, maybe on save. I think this would sure make things nice, keeping things in matching order, etc., when looking at the Navigator window, to say nothing about code maintenance and debugging. It would be great to be able to click and drag to re-order things (just the order they appear in Navigator, but if it changed the actual order... that would be super cool).
 
Obviously we would need some right-click options similar to the Dashboard window; i.e., "Exclude item from Header", "Create Logical Folder", and so on. Some other things might be both a "reset" and a "reorder" option that would return all items to the default display, and one that only changes the order back (after we decided we didn't like the way we had re-ordered the items in the header).
 
I originally thought of this while using Microchip's MPLABX mod of Netbeans, but I just double checked it in NB 8.2. I'm sure you folks can think of other things that would be way better than these ideas, but maybe this can be a start.
 
Just a thought. Thanks,
Brad
Comment 1 Sergeant82d 2017-12-23 05:15:10 UTC
Could this possibly be extended to pull variables/arguments to the header file?