Visual Studio代码如何为命令选项板条目添加键绑定 [英] Visual studio code how to add a keybinding for a command palette entry

查看:81
本文介绍了Visual Studio代码如何为命令选项板条目添加键绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我想为该条目添加一个键绑定Ctrl + R Ctrl + T:

For example, I would like to add a key binding Ctrl+R Ctrl+T for the entry:

Python:在终端中运行Python文件

Python: Run Python File In Terminal

非常感谢.

推荐答案

您可以在Preferences-> Keyboard Shortcuts部分中执行此操作.搜索在终端中运行Python文件",选择命令,然后按左侧的小+标记.

You can do that in the Preferences -> Keyboard Shortcuts section. Search for "Run Python File in Terminal", select the command and press the little + sign on the left.

这篇关于Visual Studio代码如何为命令选项板条目添加键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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