You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In editor (do not hide terminal window), type print('hello world').
Highlight text and use VS Code command Terminal: Run Selected Text in Active Terminal.
At this stage, the code has loaded into the iPython terminal but has not actually executed.
The user is required to press Enter in the terminal pane to actually execute the code. (Visual Studio Community with PTVS works as expected: the script runs upon Shift+Alt+F5.) You will notice in the screenshot that after running the selected text, the curor is still in the code panel. Therefore, if you press Enter (in an attempt to execute the code in the terminal pane), your selected text in the editor will be deleted. The only way to complete the code run in the terminal is to, after step 3, either (a) mouse over and click in the terminal panel and hit Enter, or (b) hit Ctrl+` twice to hide and show the terminal panel (which will also focus the panel) and then hit Enter. This is inefficient. The code should either fully execute upon the run command (as it does in Visual Studio) or the terminal pane should automatically focus so the user can hit enter to complete the code run.
Note that when the terminal window is hidden at the time the selected code is run, the terminal opens and is simultaneously focused. The user can then hit Enter to complete the run with little additional effort.
The text was updated successfully, but these errors were encountered:
Right now a \n or \r\n is added to the end of the selected text (if necessary) to indicate to the shell to run it. Not sure what ipython is expecting here.
Steps to Reproduce:
ipython
.print('hello world')
.Terminal: Run Selected Text in Active Terminal
.At this stage, the code has loaded into the iPython terminal but has not actually executed.
The user is required to press Enter in the terminal pane to actually execute the code. (Visual Studio Community with PTVS works as expected: the script runs upon Shift+Alt+F5.) You will notice in the screenshot that after running the selected text, the curor is still in the code panel. Therefore, if you press Enter (in an attempt to execute the code in the terminal pane), your selected text in the editor will be deleted. The only way to complete the code run in the terminal is to, after step 3, either (a) mouse over and click in the terminal panel and hit Enter, or (b) hit Ctrl+` twice to hide and show the terminal panel (which will also focus the panel) and then hit Enter. This is inefficient. The code should either fully execute upon the run command (as it does in Visual Studio) or the terminal pane should automatically focus so the user can hit enter to complete the code run.
Note that when the terminal window is hidden at the time the selected code is run, the terminal opens and is simultaneously focused. The user can then hit Enter to complete the run with little additional effort.
The text was updated successfully, but these errors were encountered: