PyCharm: Switch between Code and Run/Terminal with CapsLock-u and CapsLock-n(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 相关
- 转到编辑 > 宏 > 开始宏录制.
- 现在 pycharm 将记录您的击键.
- 按 Ctrl + Tab.转到编辑 > 宏 > 停止宏录制.给它起个名字,例如:切换到代码
- 录制第二个宏:重复步骤 1 到 3,但现在录制:Ctrl + Tab,释放 Tab 而不释放 Ctrl,然后按 5(或切换器屏幕中终端的任何数字).
- 转到文件 > 设置 > 键盘映射向下滚动到名为宏的文件夹.左键单击标题 > 添加键盘快捷键 > 记录您的快捷键 ex: Caps Lock + u
- Go to Edit > Macros > Start Macro Recording.
- Now pycharm will record your keystrokes.
- Press Ctrl + Tab. Go to Edit > Macros > Stop Macro Recording. Give it a name, ex: switch to code
- 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).
- 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 在代码和运行/终端之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PyCharm:使用 CapsLock-u 和 CapsLock-n 在代码和运行/终


- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01