File -> Preferences -> Settings -> Extended Run Code configuration found inside the line of the Run in Terminal checked
File -> Preferences -> Settings -> Extended Run Code configuration found inside the line of the Run in Terminal checked