![]() ![]() That command will use the default python.exe interpreter. If you have a default vanilla installation of the Python extension in VSCode, by default you can highlight python code and do "SHIFT+ENTER" to "Run Selection/Line in Python Terminal". "command": "-python.execSelectionInTerminal", "when": "editorTextFocus & !findInputFocussed & ! & !replaceInputFocussed & editorLangId = 'python'" Open shortcut setting and click Upper right corner to open JSON config Right click and select show same key bindingsįind command Python: Run Selection/Line in Python Terminal and Right click to disable it. Next, right click again to modify the When expression as:ĮditorTextFocus & !findInputFocussed & ! & !replaceInputFocussed & editorLangId = 'python' Search command above and right click to modify the keyboard binding as shift+enter. Open shortcut setting: Macos it's cmd+k cmd+s. If you want use shortcut setting with original shift+enter to execute command above, Use One of below methods. Install it and then use Send Select Text (or current line) To IPython ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |