使用 Mac 的朋友都知道,按下 Command + Shift + 3 可全螢幕截圖,Command + Shift + 4 則能框選區域。但針對單一視窗截圖(Command + Shift + 4 再按空白鍵)時,macOS 預設會自動加上陰影效果。若你想要乾淨無陰影的視窗截圖,只需透過終端機輸入兩行指令即可永久關閉此功能。

defaults write com.apple.screencapture disable-shadow -bool TRUEkillall SystemUIServer若日後想恢復預設陰影,重複上述步驟,將第一行指令中的 TRUE 改為 FALSE 即可:
defaults write com.apple.screencapture disable-shadow -bool FALSE
killall SystemUIServer

圖示:關閉陰影後的截圖效果,視窗邊緣乾淨利落。