diff --git a/Commands/Fmt.tmCommand b/Commands/Fmt.tmCommand
index cab3a65..7379c6f 100644
--- a/Commands/Fmt.tmCommand
+++ b/Commands/Fmt.tmCommand
@@ -10,21 +10,13 @@
# shellcheck source=/dev/null
. "${TM_SUPPORT_PATH}/lib/bash_init.sh"
-set -e
+set -e
PATH=/opt/local/bin:/usr/local/bin:/usr/local/zig/bin:$PATH
require_cmd "${TM_ZIG:-zig}"
-tmpfile=$(mktemp "${TMPDIR:-/tmp/}zig-fmt.XXXXXX")
-cat - > "$tmpfile"
-
-if ! error=$("${TM_ZIG:-zig}" fmt "$tmpfile" 2>&1);then
- exit_show_tool_tip "${error//$tmpfile/$(basename "$TM_FILEPATH")}"
-fi
-
-cat "$tmpfile"
-rm "$tmpfile"
+(eval "${TM_ZIG:-zig} fmt --stdin") || exit_show_tool_tip
input
document