您最近是否从Windows 操作系统(Windows operating)切换到 macOS?如果是,那么本指南将证明对您有所帮助。Mac有许多区别于其他Windows计算机的功能。Mac比(Macs)Windows系统更易于使用且更稳定。但是,当您切换到 macOS 时,有一件事完全不同,即在Mac上创建文本文件的过程。今天,我们将告诉您如何在Mac(Mac)上创建新文件。
如何在 Mac 上创建新的文本文件(How to Create a New Text File on Mac)
如果您在Windows PC上工作,您将能够通过几个简单的步骤创建一个新文件。但是,此功能不适用于Mac用户。
1. 右键单击桌面(Desktop)屏幕上的任意位置。
2. 选择New > Text Document,如图所示。
在 Mac 上创建文本文件的原因(Reasons to Create Text File on Mac)
在我们了解在 Mac 上创建文本文件的方法之前,让(Mac)我们(text file)首先检查一下您可能需要它的原因:
-
快速访问(Quick access):想要在Mac上创建新的空白(Mac)文本文件(text file)的最常见原因是为了快速方便地访问。有时,在办公室会议(office meeting)或在线课程期间,您可能需要桌面上的快捷方式来记下重要事项。
-
没有格式的文本(Text without formatting):您想要一个空白文本文件(text file)的另一个原因是记下没有任何格式的内容。有时,这种技术有助于创建外观更好的文档。例如,可以制作纯文本格式的粗略文章,然后将它们粘贴到文字处理器(word processor)上进行格式化。
-
探索新功能(Explore newer functions):如果您最近过渡到 macOS,了解如何在Mac上创建新的空白(Mac)文本文件(text file)将对您有很大帮助,尤其是当您需要写下指针时。
因此,在 macOS 上创建新的黑色文本文件(text file)可能会使刚开始使用它的任何人感到困惑。因此(Hence),请按照我们的分步指南(step-by-step guide)在Mac上创建文本文件(text file)。
方法 1:在 Mac 上使用终端创建文本文件(Method 1: Create Text File with Terminal on Mac )
终端应用程序是一种在Mac上创建文本文件(text file)的简单方法,如下所述:
1. 前往Finder并点击服务(Services)。
2. 如图所示,单击“文件夹中的新终端”(New Terminal at Folder)选项。
3. 现在,将打开一个终端窗口(Terminal window),包括根据您的喜好设置的当前文件夹。(folder set)
4.在终端中输入: touch myfile.txt 。
注意:(Note:)将myfile.txt替换为您要保存文件的名称。(name)例如,mynotes.txt
5. 按Enter,然后退出应用程序。
6. 双击它打开(open)并编辑(edit)它,如你所愿。
方法 2:使用 TextEdit 创建新文件
(Method 2: Create a New File using TextEdit
)
这种方法比下载第三方应用程序和编码命令更容易。好消息是这个平台内置在每个 macOS 上,因此不需要额外购买。按照给定的步骤使用TextEdit在Mac上创建文本文件(text file):
1. 同时按下Command 和 Space(Command & Space)键启动Spotlight 。
2.通过在Spotlight 搜索(Spotlight search)栏中搜索打开Mac上的TextEdit 。
3. 在 TextEdit 中,选择New Document,如图所示。
4. 默认情况下,TextEdit 应用程序(TextEdit app)将创建一个富文本文件。单击(Click)“格式(Format)”菜单中的“制作(Make) 纯文本”。(Plain Text)
5. 你现在可以开始写作了。完成后,按Command & S键保存此文件。
6. 在这里,重命名(rename )您的文件并选择将要保存的目的地。(destination)
7. 按确定(Ok)按钮保存。
另请阅读:(Also Read:)如何在 Mac 上使用实用程序文件夹
方法 3:在 Automator 上集成(Method 3: Integrate on Automator)
即使 macOS 上没有右键单击选项,您也可以将其集成到您偏好的窗口中。按照给定的步骤修改所需的编码:
1. 点击Finder,然后在搜索栏中输入Automator。
2. 然后,从屏幕左下角选择新建文档。(New Document )
注意:(Note:)您也可以按键盘快捷(keyboard shortcut)键Command + N快速执行此功能。
3. 选择一个应用程序(Application)并单击选择(Choose)。在这种情况下,工作流。 (Workflow. )
4. 向下滚动“操作(Actions )”选项卡下的“库(Library )”中给出的列表。
5. 单击实用程序(Utilities)。
6. 点击Run AppleScript,如图所示。
7. 现在,将Run AppleScript从那里拖到Workflow中。
8.键入:(Type:) 告诉应用程序(Tell application)“Finder”在(前窗口(front window)的目标)处创建一个新文件作为别名。
9. 接下来,单击文件(File),然后单击另存(Save)为NewTextDoc.app
注意:(Note: )确保在位置和文件格式(File Format)选项中选择(Where)应用程序。(Application)
10.使用Finder打开(Finder)Applications文件夹。
11. 按住Option – Command键的同时将NewTextDoc应用程序拖到工具栏上。
12.在这里,您只需单击工具栏中的Automator(Hereon)选项(Automator option),即可在任何文件夹中创建新文档。
13. 新的文本文件(text file)将命名为untitled。您可以根据自己的喜好重命名文件。(rename the file)
MacOS 版本包括两个命令行文本编辑器(command-line text editors),即Vim 和 Emac(Vim and Emac),但是,它们可能会有点复杂,可能需要一些习惯。虽然这些开源工具可以免费使用,但您也可以购买和下载您可能更喜欢使用的其他编辑软件程序。(editing software)
推荐的:(Recommended:)
- 如何将字体添加到 Word Mac
- 修复无法(Fix Could)登录(Sign)iMessage或FaceTime
- 5种方法(Ways)来修复 Safari 无法在Mac上(Mac)打开(Open)
- 修复 MacOS Big Sur 安装(Fix MacOS Big Sur Installation)失败错误
我们希望本指南能够为您提供正确的分步说明,以便在 Mac 上创建文本文件(create a text file on Mac)。您现在应该有信心在Mac上使用Terminal创建文本文件(text file)了。如果您有任何进一步的疑问,请不要犹豫,将它们放在下面的评论部分。
How to Create a Text File on Mac
Have you recently switched from a Windows operating system to macOS? If yes, then this guіde will prove to be helpful to you. There are lots of featurеs that differentiate Mac from other Windowѕ computers. Macs are easier to use and more stable than Wіndows syѕtems. Howeνer, there’s one thing that diffеrs completely when you switch to macOS i.e proсess to create text file on Mac. Today, we will tell you how to creatе a new file on Mac.
How to Create a New Text File on Mac
If you were working on a Windows PC, you would have been able to create a new file in a couple of easy steps. However, this feature is not there for Mac users.
1. Right-click anywhere on your Desktop screen.
2. Select New > Text Document, as shown.
Reasons to Create Text File on Mac
Before we take a look at the methods to create a text file on Mac, let us first examine the reasons why you might need it:
-
Quick access: The most common reason why one would like to create a new blank text file on Mac is for quick and easy access. Sometimes you may need a shortcut on your desktop to note down important things, during an office meeting or an online class.
-
Text without formatting: Another reason you would want a blank text file would be to note down things without any formatting. Sometimes this technique helps to create better-appearing documents. For example, one can make crude articles in plain text format and then, paste these on a word processor for formatting.
-
Explore newer functions: If you have transitioned to macOS recently, knowing how to create a new blank text file on Mac will help you greatly, especially, when you need to write down pointers.
As such, creating a new black text file on a macOS may confuse anyone who has just started using it. Hence, follow our step-by-step guide to create a text file on Mac.
Method 1: Create Text File with Terminal on Mac
The terminal app is an easy way to create a text file on Mac, as explained below:
1. Go to Finder and click on Services.
2. Click on the New Terminal at Folder option, as depicted.
3. Now, a Terminal window will open, including the current folder set according to your preference.
4. Type: touch myfile.txt in the Terminal.
Note: Replace myfile.txt with the name with which you want to save your file. For example, mynotes.txt
5. Press Enter and then, exit the app.
6. Double-click on it to open and edit it, as you wish.
Method 2: Create a New File using TextEdit
This method is easier than downloading third-party applications and coding commands. The good thing is that this platform is inbuilt on every macOS, and thus, there are no additional purchases required. Follow the given steps to create a text file on Mac using TextEdit:
1. Launch Spotlight by pressing Command & Space keys together.
2. Open TextEdit on your Mac by searching for it in the Spotlight search bar.
3. In TextEdit, select New Document, as shown.
4. By default, the TextEdit app will create a file with rich text. Click on Make Plain Text from the Format menu.
5. You can now start writing. Once done, save this file by pressing the Command & S keys.
6. Here, rename your File and select the destination where it will get saved.
7. Press the Ok button to save it.
Also Read: How to Use Utilities Folder on Mac
Method 3: Integrate on Automator
Even though the right-clicking option is not available on macOS, you can integrate it into the window of your preference. Follow the given steps to modify the required coding:
1. Click on Finder, and type Automator in the search bar.
2. Then, select New Document from the bottom left corner of the screen.
Note: You can also press the keyboard shortcut keys Command + N to perform this function quickly.
3. Select an Application and click on Choose. In this case, Workflow.
4. Scroll down the list given in Library under the Actions tab.
5. Click on Utilities.
6. Click on Run AppleScript, as shown highlighted.
7. Now, drag Run AppleScript from there into Workflow.
8. Type: Tell application “Finder” to make a new file at (the target of the front window) as an alias.
9. Next, click on File and then, Save as NewTextDoc.app
Note: Make sure to select Application in Where and File Format options.
10. Open Applications folder using Finder.
11. Press and hold Option – Command keys and simultaneously drag the NewTextDoc application to the toolbar.
12. Hereon, you will be able to create a new document in any folder by simply, clicking on the Automator option in the toolbar.
13. The new text file will be named untitled. You can rename the file as per your preference.
MacOS versions include two command-line text editors, i.e., Vim and Emac, however, they can get a little complex and may need some getting used to. While these open-source tools are free to use, you can also buy and download additional editing software programs that you may be more comfortable using.
-
Atom is a hackable, text editor often used to create a text files on Mac.
-
Microsoft Word is also used to create a new file on Mac.
Recommended:
We hope this guide was able to give you proper, step-by-step instructions to create a text file on Mac. You should now feel confident to create a text file with Terminal on Mac. If you have any further queries, don’t hesitate to put them down in the comments section below.