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
Looking at the following code. If you highlight the variable assignent for my_string, lines 3-6 of the code, and press shift enter to run in the interactive environment, you will get a series of errors as it processes each line of text as different python command. The desired behavior is that the interactive environment would recognize the triple quotes and include the following lines in a single python command. The desired behavior is achieved with the following work-around. If you un-indent line 3, then highlight the text and execute it then it will work successfully. That workaround is not consistent with how other things are being treated, however. If you highlight and run line 2 it executes just fine, even when it is indented. Also, I don't want to have to unindent something so that it will run while I'm developing and then go back and re-indent them all again so I can test. Feel free to reach out for clarifications or a better example.
Python:
for i in range(10):
my_int = 42
my_string = """
Multi-
Line
String""""
VS Code version: Code 1.77.3 (704ed70, 2023-04-12T09:16:02.548Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes
System Info
Item
Value
CPUs
11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20GHz (8 x 2112)
Type: Bug
Looking at the following code. If you highlight the variable assignent for my_string, lines 3-6 of the code, and press shift enter to run in the interactive environment, you will get a series of errors as it processes each line of text as different python command. The desired behavior is that the interactive environment would recognize the triple quotes and include the following lines in a single python command. The desired behavior is achieved with the following work-around. If you un-indent line 3, then highlight the text and execute it then it will work successfully. That workaround is not consistent with how other things are being treated, however. If you highlight and run line 2 it executes just fine, even when it is indented. Also, I don't want to have to unindent something so that it will run while I'm developing and then go back and re-indent them all again so I can test. Feel free to reach out for clarifications or a better example.
Python:
VS Code version: Code 1.77.3 (704ed70, 2023-04-12T09:16:02.548Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (13)
A/B Experiments
The text was updated successfully, but these errors were encountered: