Author Topic: Macro to run clang-format on file in the editor?  (Read 1648 times)

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Macro to run clang-format on file in the editor?
« 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?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Macro to run clang-format on file in the editor?
« Reply #1 on: December 18, 2019, 04:49:57 PM »
The filter_command command looks promising.

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Macro to run clang-format on file in the editor?
« Reply #2 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