SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on December 18, 2019, 04:42:59 pm

Title: Macro to run clang-format on file in the editor?
Post by: rowbearto on December 18, 2019, 04:42:59 pm
I remember someone posted this some time back, but I can't find it.

I'd like to have a macro so that I can have my source file in the editor, run the command, and it will get clang-format run on it, and then the editor would be updated with the output of clang-format.

How to do this?
Title: Re: Macro to run clang-format on file in the editor?
Post by: Clark on December 18, 2019, 04:49:57 pm
The filter_command command looks promising.
Title: Re: Macro to run clang-format on file in the editor?
Post by: rowbearto on December 18, 2019, 04:50:36 pm
Thanks Clark. I found the post I was talking about, it does use filter_command:

https://community.slickedit.com/index.php/topic,15729.msg60061.html#msg60061