Javascript Sublime Text 3 - 集成终端?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31439023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 06:42:39  来源:igfitidea点击:

Sublime Text 3 - integrated terminal?

javascripteclipsenode.jssublimetext3webstorm

提问by Alexander Mills

I normally use the WebStorm IDE for Node.js and FE JavaScript development. However I was thinking of using Sublime Text 3 since I am running out of computing power on a crappy old Macbook Pro and ST3 should be lighter on memory and CPU.

我通常使用 WebStorm IDE 进行 Node.js 和 FE JavaScript 开发。但是,我正在考虑使用 Sublime Text 3,因为我在一台破旧的 Macbook Pro 上的计算能力已经耗尽,而 ST3​​ 的内存和 CPU 应该更轻。

However, my one hangup is that ST3 doesn't seem to have a command line terminal integration possible. I find this to be a very useful feature that's available in Eclipse and WebStorm.

但是,我的一个问题是 ST3 似乎没有可能的命令行终端集成。我发现这是一个非常有用的功能,可在 Eclipse 和 WebStorm 中使用。

I did some Googling and I don't see any great terminal integration plugins for ST3, is there such a thing or not?

我做了一些谷歌搜索,但我没有看到任何很棒的 ST3 终端集成插件,有没有这样的东西?

Here is WebStorm with the terminal integrated:

这是集成了终端的 WebStorm:

enter image description here

在此处输入图片说明

采纳答案by maxheld

The below original answer is now outdated; see below answerby Svish.

以下原始答案现已过时;见下面Svish 的回答



I was wondering the same thing a while back, and I believe the answer is: no.

不久前我也在想同样的事情,我相信答案是:

There's no good terminal integration in ST3, except, maybe, for Terminal, which simply takes you tothe terminal from any given project folder. Works ok, but not sure how much it really saves.

ST3 中没有很好的终端集成,除了,也许,对于Terminal,它只是将您从任何给定的项目文件夹带终端。工作正常,但不确定它真正节省了多少。

No way to have it in the ST3 windowAFAIK.

AFAIK无法在 ST3 窗口中使用它。

回答by Svish

Terminusdoes this. Supports both Unix and Windows. Works great.

Terminus 就是这样做的。支持 Unix 和 Windows。效果很好。

In View (on Windows)

在视图中(在 Windows 上)

screenshot 1

截图 1

In Panel (on Unix)

在面板中(在 Unix 上)

screenshot 2

截图 2

回答by Lars Blumberg

I installed the Sublime package TerminalViewthat can show a terminal window within Sublime in a separate tab.

我安装了 Sublime 包TerminalView,它可以在单独的选项卡中显示 Sublime 中的终端窗口。

It works with MacOS or Linux but is no longer actively supported.

它适用于 MacOS 或 Linux,但不再受到积极支持。

TerminalView in SublimeText

SublimeText 中的终端视图

Installation:

安装:

  1. Open the command palette (Cmd+Shift+Pon Mac, Ctrl+Shift+Pon Windows) and find Package Control: Install Package
  2. Search for TerminalViewand hit Returnto install.
  1. 打开命令调色板(Cmd+ Shift+P在Mac上,Ctrl+ Shift+P在Windows),找到Package Control: Install Package
  2. 搜索TerminalView并点击Return安装。

The terminal windows has a few flaws (at least on macOS) as it seems to conflict with Sublime's keyboard shortcuts. I however use it only to automatically run unit tests when the edited program code changes. Therefore it works just fine. In that case it works best if I show the terminal window below the text editor. You can do so in the menu View > Layout > Rows: 2.

终端窗口有一些缺陷(至少在 macOS 上),因为它似乎与 Sublime 的键盘快捷键冲突。然而,当编辑的程序代码更改时,我仅使用它来自动运行单元测试。因此它工作得很好。在这种情况下,如果我在文本编辑器下方显示终端窗口,效果最佳。您可以在菜单View > Layout > Rows: 2 中执行此操作

回答by Mohideen bin Mohammed

In sublime 3,

在崇高3中,

  1. ctrl + shift + psearch Package Control: Install Package
  2. Search and install TerminalView
  3. to set shortcuts, go to Preferences -> Key Bindings
  1. ctrl + shift + p搜索 Package Control: Install Package
  2. 搜索并安装 TerminalView
  3. 要设置快捷方式,请转到 Preferences -> Key Bindings

on right side Panepaste this,

在右侧窗格中粘贴这个,

[
   { "keys": ["ctrl+shift+t"], "command": "terminal_view_open" }
]
  1. Now ctrl+shift+tis your shortcuts
  1. 现在ctrl+shift+t是你的捷径

回答by Nithin

I tried Sublime package - TerminalView, quickly realized I couldn't copy paste things. Tried on MacOS.

我尝试了 Sublime 包 - TerminalView,很快意识到我无法复制粘贴内容。在 MacOS 上试过。

Terminus(https://github.com/randy3k/Terminus) looks good to me, it has two options

Terminus( https://github.com/randy3k/Terminus) 对我来说看起来不错,它有两个选项

(i) opens in a tab(view)

(i) 在选项卡中打开(查看)

(ii) opens also in a panel. (which I prefer most)

(ii) 也在面板中打开。(我最喜欢的)