在spacemacs中打开外壳,就像我的代码旁边的单独窗口一样

had*_*hat 5 spacemacs

我可以在spacemacs中打开外壳程序吗(在我的代码窗口旁边的单独窗口中,我可以切换到它并发出命令)?就像打开python解释器,运行测试或我可以在终端上完成的任何简单任务一样。

小智 5

我认为您正在寻找的部分内容可以在Shell 层中找到,这将使您可以执行通常在终端模拟器中执行的任何操作,您可以从此处启动 iPython 等。

安装层后,您可以使用以下键绑定

|-------------+------------------------------------------------------|
| Key binding | Description                                          |
|-------------+------------------------------------------------------|
| SPC '?       | Open, close or go to the default shell               |
| SPC "?       | Open external terminal emulator in current directory |
| SPC p '?     | Open a shell in the project's root                   |
| SPC p "?     | Open external terminal emulator in project root      |
| TAB         | browse completion with `helm`                        |
| SPC m H     | browse history with helm (works in eshell and shell) |
| C-j         | next item in history                                 |
| C-k         | previous item in history                             |
|-------------+------------------------------------------------------|
Run Code Online (Sandbox Code Playgroud)

另一部分在Python 层,它支持生成一个 Python 解释器,这可以由SPC m s i.

如果您喜欢 Jupyter Notebook(以前称为 iPython notebook),那么它也有一个层(ipython-notebook),安装后您可以使用SPC a i n.