Apple Xcode: Piping selected text to external programs

Hi,


How do you pipe selected text in Apple Xcode out to an external program, replacing it with the output from that program? For example, in MacVim, you can type

!}command

to pipe the rest of the current paragraph to _command_, replacing the original text with the output of that command, which is hella useful if you’ve written a lot of filters for tasks like automatic text reflowing or automatic source code reformatting. How do you do this in Apple Xcode?


I am running Apple Xcode Version 10.1 (10B61) [the highest-numbered, most-recent version of Xcode compatible with Apple macOS Version 10.13.6 “High Sierra”].


Also, I wanted to post this in the developer community fora but couldn’t find an “Xcode” topic/category. Can someone provide a link to a more appropriate place where I should/could have posted this question?


’preciate it,

Austin

Posted on Aug 6, 2021 5:21 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apple Xcode: Piping selected text to external programs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.