User forums > Using Code::Blocks
Event Triggers
(1/1)
ironhead:
Is it possible (via script or whatnot), to trigger an event before a file is written to disk (i.e. PreWrite)? Basically I'd like to call the Astyle Plugin when I save the file and have it format the file prior to writting it to disk.
Thank you.
Pecan:
Two thoughts:
1) http://forums.codeblocks.org/index.php?topic=6129.0
2) Send the astyle menu item an wxCommandSelelected event.
Navigation
[0] Message Index
Go to full version