---
title: "OS X 小技巧 - 禁止修改文件扩展名的警告[Mac]"
date: 2012-04-16T23:14:07Z
modified: 2012-04-17T06:13:03Z
permalink: "https://www.appinn.com/disablefile-extension-warning/"
type: post
status: publish
excerpt: ""
categories:
  - macOS
tags:
  - macOS
  - 扩展名
  - 技巧
featured_image: "https://www.appinn.com/wp-content/uploads/disablefile-extension-warning.jpg"
author: sfufoet
timestamp: 2012-04-17T06:13:03Z
---

OS X 修改文件扩展名的时候会弹出如下提示，对于新手来说，可能有用，对于 @[sfufoet](http://www.appinn.com/author/sfufoet/) 我这样的折腾爱好者而言，这个警告对话框不是一般的讨厌。

[![](https://static2.appinn.com/images/201204/disablefile-extension-warning.jpg)

](https://www.appinn.com/disablefile-extension-warning.md)

要禁止它，很简单。在 Lauchpad 里面，点击“工具-终端”，然后依次输入以下命令：

> defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
> killall Finder

想反悔就输入：

> defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
> killall Finder

via [OS X Daily](http://osxdaily.com/2012/04/11/disable-the-file-extension-change-warning-in-mac-os-x/)

update: Rasmus 留言说：其实只要直接在 Finder 中按＂Command + ,＂进入 Preferences，然后选择 “Advanced” – 取消 “Show warning before changing an extension” 前面的勾就可以了

## Topics

**分类目录:** [macOS](https://www.appinn.com/category/mac/?output_format=md)

**标签:** [扩展名](https://www.appinn.com/tag/%e6%89%a9%e5%b1%95%e5%90%8d/?output_format=md), [技巧](https://www.appinn.com/tag/%e6%8a%80%e5%b7%a7/?output_format=md)