如何在Atom中打开终端?

时间:2017-03-25 06:13:35

标签: ubuntu terminal atom-editor

如何在Atom中打开终端?我需要安装插件吗?

如果可能的话,我也想知道如何使用快捷键打开终端。

8 个答案:

答案 0 :(得分:16)

Atom IDE中:

  1. 打开“偏好设置”
  2. 点击“+”(安装)
  3. 搜索名为“platformio-ide-terminal”的终端包
  4. 点击“安装”。

答案 1 :(得分:7)

有许多Atom软件包可以让您从Atom中访问终端。尝试一些为您找到最佳选择。

一些适用于Ubuntu的推荐(带有主键盘快捷键):

在 Atom中打开终端

编辑:不再维护terminal-plus更改的推荐插件。谢谢你的头脑,@ MorganRodgers。

如果您想在 Atom中打开终端面板,请尝试atom-ide-terminal。使用键盘快捷键ctrl-`打开新的终端实例。

Atom打开外部终端

如果您只想从Atom中打开外部终端的快捷方式,请尝试atom-terminal(这是我使用的)。您可以使用ctrl-shift-t在当前文件的目录中打开外部终端,或alt-shift-t在项目的根目录中打开终端。

答案 2 :(得分:4)

对于Windows,请执行以下步骤

(1)转到文件>设置,然后单击安装 enter image description here

(2),然后在软件包中键入“ platformio-ide-terminal”,然后单击安装 enter image description here (3)完成安装后,重新启动原子并按

 ctrl + ~ for opening the terminal `~` is the key below `Esc`

enter image description here

欢迎;-)

答案 3 :(得分:4)

在当前版本的Mac Catalina中

  1. 转到软件包选项卡->设置视图--->安装软件包/主题---> +安装按钮->添加“ platformio-ide-terminal”

  2. 控制〜获取终端

答案 4 :(得分:1)

Atom当前没有内置终端(据我所知),因此您将必须安装其他软件包,例如platformio-ide-terminal

以下屏幕截图是在Mac上拍摄的。

  1. 点击 Atom 并选择“偏好设置”

    enter image description here

  2. 在显示的“设置”标签中,点击添加图标+以安装新软件包

    enter image description here

  3. 将出现一个搜索栏。大多数软件包的名称中应具有您想要的功能,因此您可以开始键入这些关键字以查看建议。在这种情况下,如果您已经知道名称,只需在其中输入

    enter image description here

  4. 点击安装

答案 5 :(得分:1)

我不想为此安装软件包,所以最终在init.coffee中使用了该软件包:

spawn = require('child_process').spawn
atom.commands.add 'atom-text-editor', 'open-terminal', ->
  file = atom.workspace.getActiveTextEditor().getPath()
  dir = atom.project.getDirectoryForProjectPath(file).path
  spawn 'mate-terminal', ["--working-directory=#{dir}"], {
    detached: true
  }

这样,我可以将ctrl-shift-t映射到open-terminal命令,它会打开一个配合端子。

答案 6 :(得分:0)

准确回答问题。要打开终端,只需使用以下命令即可:

  • 快捷方式:ctrl-`或Option + Command + T(⌥⌘T)
  • 通过菜单:转到软件包> platformio-ide-terminal [或其他]>新终端

答案 7 :(得分:0)

  1. 打开您的Atom IDE
  2. 按ctrl + shift + P并搜索“ platformio-ide-terminal”程序包
  3. 按安装
  4. 安装完成后,按ctrl +〜(在标准键盘上的Tab键上方倾斜)
  5. 终端开放享受!