mac 把终端全屏的快捷键_使用键盘快捷键立即在Mac上打开全屏终端

mac 把终端全屏的快捷键

mac 把终端全屏的快捷键

Many Mac users spend their entire lives in the Terminal, but most of us only open it occasionally. Using a mouse to open a text-based interface feels weird, however. What if there was a way to always have the Terminal at the ready, triggered by a single keyboard shortcut?

许多Mac用户一生都在终端上度过,但是我们大多数人只是偶尔打开它。 但是,使用鼠标打开基于文本的界面感觉很奇怪。 如果有一种方法可以始终通过单个键盘快捷键触发终端,则该怎么办?

You can set this up yourself easily thanks to iTerm, an alternative to the default Terminal that’s customizable in all sorts of ways. It’s really the best way to power up your macOS Terminal.

您可以通过iTerm轻松地自己进行设置,它是可以以各种方式自定义的默认终端的替代产品。 这确实是启动macOS Terminal的最佳方法。

One of my favorite features is the hotkey window, which I’ll use here to create the quickly-triggered full screen Terminal of my dreams. Here’s what that looks like:

我最喜欢的功能之一是热键窗口,我将在这里使用它创建梦my以求的快速触发的全屏终端。 看起来像这样:

Excited? Let’s get started.

激动吗 让我们开始吧。

第一步:下载并安装iTerm (Step One: Download and Install iTerm)

The first step is simple: head to the iTerm website and download the program. You can install the program by unzipping it and draging the icon to Applications.

第一步很简单: 访问iTerm网站并下载程序。 您可以通过解压缩程序并将图标拖动到“应用程序”来安装程序。

When you run iTerm, you’ll notice it’s not that different from your default Terminal.

运行iTerm时,您会注意到它与默认终端没有什么不同。

There’s a lot of hidden functionality in the settings, however, which we’ll get to now.

但是,设置中有很多隐藏的功能,我们现在将进行介绍。

第二步:启用热键窗口 (Step Two: Enable The Hotkey Window)

Click “iTerm2” in the menu bar, choose the “Preferences” option, and then head to the “Keys” section. At the bottom-left you’ll see a button called “Create a Dedicated Hotkey Window.” Tap this and a menu appears.

单击菜单栏中的“ iTerm2”,选择“首选项”选项,然后转到“键”部分。 在左下角,您将看到一个名为“创建专用热键窗口”的按钮。 点击此按钮,将出现一个菜单。

Configure this to your liking. I prefer the keyboard shortcut Option+Space, because it’s similar to Spotlight without overlapping, but you can use anything you want. You can also set this window to open when you click the iTerm dock icon, but that’s up to you. Click “OK” when you’re done.

根据您的喜好进行配置。 我更喜欢键盘快捷键Option + Space,因为它类似于Spotlight,但没有重叠,但是您可以使用任何想要的东西。 您还可以将窗口设置为在单击iTerm停靠图标时打开,但这取决于您。 完成后,单击“确定”。

Use the keyboard shortcut you just signed and you’ll see the default hotkey window, which takes up half the screen.

使用您刚刚签名的键盘快捷键,您将看到默认的热键窗口,该窗口占据屏幕的一半。

If you like the way this looks and works, congrats: you can stop here. If you want the full screen large Terminal seen in my screenshots above, however, you’ve got a bit more work to do.

如果您喜欢这种外观和工作方式,请恭喜:您可以在这里停止。 但是,如果您希望在上面的屏幕截图中看到全屏大终端,则需要做更多的工作。

第三步:改变外观 (Step Three: Change The Look and Feel)

Head to the Profiles section in the Preferences window and make sure the “Hotkey Window” profile is selected.

转到“首选项”窗口中的“配置文件”部分,并确保已选择“热键窗口”配置文件。

Next head to the “Text” section in the right panel. If you want the full screen Terminal experience I recommend changing the font to something bigger, because otherwise everything is buried in a sea of black space. I went with 18pt Monaco, but use whatever font combination you like.

接下来转到右侧面板中的“文本”部分。 如果您希望全屏终端体验,我建议将字体更改为更大的字体,因为否则所有内容都将被掩埋在一片空白的海洋中。 我选择了18pt摩纳哥,但要使用任何喜欢的字体组合。

Next head to Window and set the “Style” dropdown to Fullscreen.

接下来转到“窗口”,然后将“样式”下拉列表设置为“全屏”。

Also feel free to adjust the Transparency and Blur settings until everything looks just right. You could just as easily forgo the transparency and have a black background. Here’s how mine turned out:

也可以随时调整“透明度”和“模糊”设置,直到一切看起来正确为止。 您可以轻松地放弃透明度并使用黑色背景。 这是我的结果:

If a single Terminal isn’t enough, you can split the screen vertically with Command+D (or horizontally with Command+Shift+D).

如果一个终端不够用,您可以使用Command + D垂直拆分屏幕(或使用Command + Shift + D水平拆分屏幕)。

You can switch between panes using Command+Option and the arrow keys. This way, you can have several different things running, all of them easy to pull up with keyboard shortcuts. You’ll wonder how you ever lived without it.

您可以使用Command + Option和箭头键在窗格之间切换。 这样,您可以运行几种不同的东西,所有这些东西都可以通过键盘快捷键轻松启动。 您会想知道没有它的生活。

If you’re not sure how to use this, don’t worry: there are all sorts of cool commands you can use, allowing you to do things like listen to music or even update apps without opening the Mac App Store. Get to it!

如果您不确定如何使用此功能,请不要担心: 您可以使用各种很酷的命令无需打开Mac App Store即可进行听音乐甚至更新应用程序之类的操作 。 来吧!

翻译自: https://www.howtogeek.com/337861/instantly-open-a-full-screen-terminal-on-your-mac-using-a-keyboard-shortcut/

mac 把终端全屏的快捷键

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值