简体   繁体   English

如何在 vs 代码中禁用 python 交互模式?

[英]How to disable python interactive mode in vs code?

I prefer to use this extension so I find very annoying that every time I write a code-cell or hit shift-enter VS-Code opens its internal interactive python console.我更喜欢使用这个扩展,所以我发现每次我写一个代码单元或点击 shift-enter VS-Code 都会打开它的内部交互式 python 控制台,这很烦人。 How to stop such a behavior?如何制止这种行为?

Change the keybinding for 'interactive.execute' in the Keyboard Shortcuts.在键盘快捷键中更改“interactive.execute”的键绑定。 To access keyboard shortcuts, press ctrl+shift+p and type 'keyboard'要访问键盘快捷键,请按 ctrl+shift+p 并键入“键盘”

You can view your keyboard shortcuts using:您可以使用以下方式查看键盘快捷键:

  1. Click the gear icon in the lower left corner of the interface点击界面左下角的齿轮图标

  2. Select Keyboard Shortcuts (Ctrl + K + S)选择键盘快捷键(Ctrl + K + S)

    在此处输入图像描述

  3. Select Record Keys (Alt + k) on the right side of the input box选择输入框右侧的Record Keys (Alt + k)

    在此处输入图像描述

  4. Press the SHIFT and ENTER keysSHIFTENTER

  5. View the functions bound to this shortcut key in the list在列表中查看该快捷键绑定的功能

    在此处输入图像描述

  6. Just delete what you don't want.只删除你不想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM