Feature : Format source on save

Gaël Le Baccon gael.lebaccon at gmail.com
Wed Jul 10 11:25:21 BST 2019


Hello,

I try to implement feature that format current source file on save. I
modified TextDocument::save function to do that but it seems that this
function is only called when a document is saved when we trigger build
action (automatic save of modified documents).

After investigation I noticed that the save action (ctrl+s or save button)
call directly KTextEditor::documentSave.

Are you any idea to catch this action before the document is saved ?

Gaël Le Baccon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20190710/ea0b8f4e/attachment-0001.html>


More information about the KDevelop-devel mailing list