gpt4 book ai didi

python-3.x - 如何添加快捷方式来运行项目中的所有单元测试(ST3 + Anaconda)?

转载 作者:行者123 更新时间:2023-12-01 11:34:48 24 4
gpt4 key购买 nike

或者更准确地说,我如何找出我需要在我的用户 .sublime-keymap 文件中添加哪个命令和哪些参数来快捷 Anaconda: Run Project Tests 命令?命令是否在某处列出?

这是默认的 anaconda .sublime-keymap 文件:

[
{"command": "anaconda_goto", "keys": ["ctrl+alt+g"]},
{"command": "anaconda_find_usages", "keys": ["ctrl+alt+f"]},
{"command": "anaconda_doc", "keys": ["ctrl+alt+d"]},
{"command": "anaconda_auto_format", "keys": ["ctrl+alt+r"]},
{"command": "anaconda_goto", "keys": ["g", "d"],
"context":
[
{ "key": "selector", "operator": "equal", "operand": "source.python" },
{ "key": "setting.command_mode", "operand": true },
{ "key": "setting.is_widget", "operand": false }
]
}
]

documentation因为测试运行者希望我已经知道我想要记住的快捷方式的命令:

note: Of course you can configure whatever shortcut that you want to run anaconda tests but they are not added by default

最佳答案

请参阅此处列出所有 anaconda commands .

回答你的问题:

在“Prefences->Key Bindings - User”中添加这个

{"command": "anaconda_run_project_tests", "keys": ["ctrl+alt+t"]},

关于python-3.x - 如何添加快捷方式来运行项目中的所有单元测试(ST3 + Anaconda)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28324172/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com