02-12-2025 03:42 PM
I am always making typedefs. They're super helpful and make my code much easier to modify. However! I must right click and select Make Typedef, Then right click again to open the type def and save it. This is annoying. Under what circumstance would I create and then not also open and save a typedef? My preferred behavior would be that when I create a typedef, the control is immediately opened for modification and saving. In fact, the prompt to save might pop up automatically as well.
Maybe someone has create a quickdrop shortcut for this....
02-12-2025 04:45 PM
Maybe not exactly what you ask for but might save you some time if check "Open the control editor with double click".
02-12-2025 04:56 PM
@littlesphaeroid wrote:
I am always making typedefs. They're super helpful and make my code much easier to modify. However! I must right click and select Make Typedef, Then right click again to open the type def and save it. This is annoying. Under what circumstance would I create and then not also open and save a typedef? My preferred behavior would be that when I create a typedef, the control is immediately opened for modification and saving. In fact, the prompt to save might pop up automatically as well.
Maybe someone has create a quickdrop shortcut for this....
A close second to that annoyance is that it always creates the typedef at the top level of the project instead of in the library of its "host" so you always have to drag it into the correct library and change its icon.
02-12-2025 05:18 PM
@billko wrote:A close second to that annoyance is that it always creates the typedef at the top level of the project instead of in the library of its "host" so you always have to drag it into the correct library and change its icon.
Here is an idea I posted to correct that:
Regards,
Raphaël.
02-12-2025 05:37 PM
I gave it a vote.
02-17-2025 04:35 AM
@littlesphaeroid wrote:
Under what circumstance would I create and then not also open and save a typedef?
I rarely make type defs anymore since I switched to OO.
Just an occasional enum, but never clusters...
When I do create a type def enum, I simply mark the enum as type def, and wait for LV to ask me so save it when I close the VI. So for me this is a rather convenient workflow, although it's not clear what is saved first (esp. in the even rarer case where you marked 2 controls as new type def).
@littlesphaeroid wrote:Maybe someone has create a quickdrop shortcut for this....
It's sooner look into LabVIEW Shortcut Menu Plug-Ins - NI Community.
This can actually replace LabVIEW's menu (if you want it to). You might get it to do exactly what you want.
It's a bit tricky to get going with shortcut menu plug-ins, but what you request doesn't sound too difficult.