Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过键盘快捷键在vscode中运行python?_Python_Visual Studio Code - Fatal编程技术网

通过键盘快捷键在vscode中运行python?

通过键盘快捷键在vscode中运行python?,python,visual-studio-code,Python,Visual Studio Code,它显示了F5,但我如何在mac的键盘上做到这一点?另外,当我手动点击“运行”菜单时,它有一个下拉菜单可供选择,我可以在保存文件时自动运行程序吗 只需按Fn+Ctrl+F5,它不会要求您选择。如果按F5,它将要求选择,因为它包括调试 旧版本 Ctrl + F5 for Win Fn + Command + F5 on Mac 如果不起作用,在新版本中试试这个 Command + F5 参考

它显示了F5,但我如何在mac的键盘上做到这一点?另外,当我手动点击“运行”菜单时,它有一个下拉菜单可供选择,我可以在保存文件时自动运行程序吗

只需按Fn+Ctrl+F5,它不会要求您选择。如果按F5,它将要求选择,因为它包括调试

旧版本

Ctrl + F5 for Win
Fn + Command + F5 on Mac
如果不起作用,在新版本中试试这个

Command + F5
参考