Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ironhead on September 03, 2009, 01:11:56 pm
-
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.
-
Two thoughts:
1) http://forums.codeblocks.org/index.php?topic=6129.0
2) Send the astyle menu item an wxCommandSelelected event.