如何保存具有自定义扩展名 (.sas) 的 TextEdit (mac) 文件? [英] How do I save a TextEdit (mac) file with a custom extension (.sas)?
问题描述
所以,我正在为 SAS 编写一些代码,我意识到我必须将文件保存为 filename.sas.我的教授提到我必须在我的电脑上使用记事本或其他文本编辑器.
So, I'm in the process of writing some code for SAS and I realized I have to save the file as filename.sas. My professor mentioned that I would have to use note pad or another text editor on my computer.
如何在 Mac 上使用 TextEdit 来保存 .sas 文件?打开 TextEdit,添加一些文本并保存会导致文件添加 .rtf 或 .odt 扩展名.
How can I use TextEdit on the Mac to save a .sas file? Opening TextEdit, adding some text, and saving causes the file to have a .rtf or .odt extension added to it.
应该补充一下我的mac版本是10.5.8
Should probably add that my mac version is 10.5.8
推荐答案
您的 Mac 带有 TextEdit,这是一个非常好的基本文本编辑器.请务必选择格式">制作纯文本",以便获得文本文件.保存时请务必取消选中隐藏扩展名,并手动提供 .sas
扩展名.或者您可以稍后使用 Finder 中的文件 > 获取信息来更改扩展名.
Your Mac comes with TextEdit, which is a perfectly good basic text editor. Be sure to choose Format > Make Plain Text so that you get a text file. Be sure to uncheck Hide Extension when you save, and provide the .sas
extension manually. Or you can change the extension later using File > Get Info in the Finder.
终端中还有 pico、vim、vi、emacs,可能还有许多其他工具.
You also have pico, vim, vi, emacs, and probably a host of others in the Terminal.
这篇关于如何保存具有自定义扩展名 (.sas) 的 TextEdit (mac) 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!