PyCharm:使用 CapsLock-u 和 CapsLock-n 在代码和运行/终端之间切换 [英] PyCharm: Switch between Code and Run/Terminal with CapsLock-u and CapsLock-n

查看:32
本文介绍了PyCharm:使用 CapsLock-u 和 CapsLock-n 在代码和运行/终端之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 PyCharm 中使用 CapsLock-u 和 CapsLock-n 在代码和运行/终端之间切换.

I would like to switch between Code and Run/Terminal with CapsLock-u and CapsLock-n in PyCharm.

在我的键盘上,u 在顶部,n 在底部,这给了我一个很好的记忆方法.

On my keyboard u is at the top, and n is at the bottom, this gives me a good way to memorize this.

我不知道如何像这样配置我的 Ubuntu 16.04 (unity) 桌面.

I have no clue how to configure my Ubuntu 16.04 (unity) desktop like this.

推荐答案

我有一个利用pycharm的切换器的解决方案.

I have a solution that utilizes the pycharm's switcher.

请注意,在我当前的窗口设置中,我将终端作为屏幕上的第 5 个窗口,这可能与您的情况不同.这也与 Pycharm 2016.3 相关

  1. 转到编辑 > 宏 > 开始宏录制.
  2. 现在 pycharm 将记录您的击键.
  3. Ctrl + Tab.转到编辑 > 宏 > 停止宏录制.给它起个名字,例如:切换到代码
  4. 录制第二个宏:重复步骤 1 到 3,但现在录制:Ctrl + Tab,释放 Tab 而不释放 Ctrl,然后按 5(或切换器屏幕中终端的任何数字).
  5. 转到文件 > 设置 > 键盘映射向下滚动到名为宏的文件夹.左键单击标题 > 添加键盘快捷键 > 记录您的快捷键 ex: Caps Lock + u
  1. Go to Edit > Macros > Start Macro Recording.
  2. Now pycharm will record your keystrokes.
  3. Press Ctrl + Tab. Go to Edit > Macros > Stop Macro Recording. Give it a name, ex: switch to code
  4. To record the second macro: repeat steps 1 through 3 but now record: Ctrl + Tab, release Tab without releasing Ctrl and press 5 (or whatever the number is for your terminal in the switcher screen).
  5. Go to File > settings > keymap scroll down to the folder named Macros. Left click on the title > add keyboard shortcut > Record your shortcut ex: Caps Lock + u

现在您可以使用键绑定在 pycharm 上播放宏.如果您更改了窗口的布局,请记得更新宏!

Now you can use your key bindings to playback the macro on pycharm. If you ever change the layout of your window, remember to update the macros as well!

祝你好运:)

这篇关于PyCharm:使用 CapsLock-u 和 CapsLock-n 在代码和运行/终端之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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