如何使用快捷方式从Intellij终端跳转到编辑器 [英] How to jump from Intellij terminal to editor with shortcut

查看:135
本文介绍了如何使用快捷方式从Intellij终端跳转到编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以使用 Esc 从Intellij IDEA中的几乎所有窗口跳转到编辑器窗口。在Intellij的终端窗口中,这不起作用。有没有人知道如何使用键盘快捷键执行此操作?这很好,因为我可以使用 Alt + F12 从我的编辑器跳转到终端,但是如果不使用我的鼠标我就不能这样做了。

I know that you can jump from almost all windows in Intellij IDEA to the editor window with Esc. In Intellij's terminal window, this does not work. Does anyone know how to do this with a keyboard shortcut? This would be nice since I can jump from my editor to the terminal with Alt+F12 but I cannot do it the other way without using my mouse.

推荐答案

更新 - 2016年3月

UPDATE - March 2016

由于这个问题引起了一些关注,我想提醒大家,你可以通过内置动作轻松地在编辑器和终端窗口之间切换。默认情况下,它映射到 Alt + F12 F12 。要检查其他映射,请在视图>工具窗口>终端的菜单中查看。或者转到使用嵌入式本地终端 web帮助页面并更改右上角的Keymap选项并滚动到最后(在另请参阅部分的上方),其中显示:通过按下在嵌入式本地终端和编辑器之间切换 。您可以在设置>键盘映射>其他>终端

Since this question is getting some attention, I wanted to remind everyone that you can toggle between the editor and the terminal window easily enough with a built in action. By default it is mapped to Alt+F12 and F12. To check other mappings, view it in the menu at View > Tool Windows > Terminal. Alternatively go to the Working with Embedded Local Terminal web help page and change the Keymap option in the upper right corner and scroll to the very end (just above the "See also" section) where it says: "Toggle between the embedded local terminal and editor by pressing...". You can remap this action in Settings > Keymap > Other > Terminal

此问题讨论的主要问题是否有办法从终端窗口返回到编辑器而不关闭终端窗口。

The main "issue" this question discusses is if there is a way to return from the terminal window to the editor without closing the terminal window.

[2016年3月更新]

[End March 2016 update]

================================================== =

===================================================

目前我能想到的一些选项。

Some options I can think of at the moment.


  1. Alt + F12 第二次将您带回编辑器,但会隐藏终端窗口。

  2. Alt + Home 将带您进入导航栏,然后点击 Esc 将带您进入编辑器。如果您经常这样做,为了消除对双序列的需要,您可以使用序列记录宏(编辑>宏)。然后将其映射到快捷方式(设置> [IDE设置]>键盘映射>宏)。关于这个选项的好处是它可以在任何工具窗口中工作。因此,您可以使用它作为一致的返回编辑器快捷方式。

  3. 虽然 Ctrl + 选项卡中没有编辑器选项 @vikingsteve提到的切换器,你可以做 Ctrl + Tab Ctrl + Shift + < KBD>标签。再次,您可以将其记录到宏。

  1. Alt+F12 a second time will take you back to the editor, but will hide the terminal window.
  2. Alt+Home will take you to the navigation bar, then hitting Esc will take you to the editor. If you do this often enough, to eliminate the need for the double sequence you could record a Macro (Edit > Macros) with the sequence. Then map it to a shortcut (Settings > [IDE Settings] > Keymap > Macros). The nice thing about this option is that it will work from any tool window. So you can get use to it as a consistent "Return to the Editor" shortcut.
  3. While there is no editor option in the Ctrl+Tab switcher that @vikingsteve mentions, you could do Ctrl+Tab, Ctrl+Shift+Tab. Again, you could record that to a macro.

如果我想到任何其他想法,我会添加它们。

If I think of any other ideas, I'll add them.

这篇关于如何使用快捷方式从Intellij终端跳转到编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆