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 在代码和运行/终


基础教程推荐
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 包装空间模型 2022-01-01