You set a custom command (Edit->Format->Send Selection To->Set Custom Commands) and then when you activate it, it takes the selection and then sends it to the standard input of the command (in this case rustfmt) which does its thing (in this case formats Rust code) and then sends the result out of its standard output, which Geany then replaces the current selection with.

For example if you set rustfmt as the first custom command, the key sequence Ctrl+a Ctrl+1 would format the entire current document.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.